enforced_lints 0.1.0 copy "enforced_lints: ^0.1.0" to clipboard
enforced_lints: ^0.1.0 copied to clipboard

Configurable lint rules enforced across Dart/Flutter projects via the analyzer plugin API.

example/lib/example.dart

// This file demonstrates violations caught by enforced_lints.
// With the plugin active, the lines below will be flagged in the IDE.

void demonstrateViolations() {
  // violation: `final` on a local variable
  // ignore: no_final_local_variable
  final int a = 1;

  // violation: implicit typing via `var`
  // ignore: no_final_local_variable
  var b = 2;

  // OK: explicit non-final type
  int c = 3;

  print('$a $b $c');
}
2
likes
0
points
41
downloads

Publisher

verified publishersoneka96.com

Weekly Downloads

Configurable lint rules enforced across Dart/Flutter projects via the analyzer plugin API.

Repository (GitHub)
View/report issues

Topics

#linting #analyzer #dart

License

unknown (license)

Dependencies

analyzer, analyzer_plugin

More

Packages that depend on enforced_lints