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

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

example/lib/example.dart

// This file shows how enforced_lints integrates with a Dart project.
// Once the plugin is active, violations are highlighted directly in the IDE.

// ─── Flagged by enforced_lints ────────────────────────────────────────────────
//
//   final int a = 1;      ← no_final_local_variable: final not allowed
//   var b = 2;            ← no_final_local_variable: var not allowed
//   final items = [];     ← no_final_local_variable: final + implicit type
//
// ─── Correct patterns ─────────────────────────────────────────────────────────

void demonstrateCorrectUsage() {
  int count = 0;
  String name = 'Alice';
  List<String> items = [];

  print('$count $name $items');
}
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