Dart Analyzer
- Use `analysis_options.yaml` with `include: package:lints/recommended.yaml` or `flutter_lints` as baseline. Run `dart analyze` before commits — treat all warnings as errors in CI with `--fatal-warnings`. Run `dart format .` for consistent formatting.
Dart Analyzer
- Use `analysis_options.yaml` with `include: package:lints/recommended.yaml` or `flutter_lints` as baseline. Run `dart analyze` before commits — treat all warnings as errors in CI with `--fatal-warnings`. Run `dart format .` for consistent formatting.
- Enable strict mode: `strict-casts: true`, `strict-inference: true`, `strict-raw-types: true` in `analyzer` section. Customize rules in `linter.rules` — enable `prefer_const_constructors`, `avoid_print`, `prefer_final_locals`. Use `// ignore: rule_name` only with a comment explaining why. Set line length in `dart format -l 100` or configure in `analysis_options.yaml`.