saropa_lints 6.0.3
saropa_lints: ^6.0.3 copied to clipboard
1827 custom lint rules with 292 quick fixes for Flutter and Dart. Static analysis for security, accessibility, and performance.
example/example.md
Saropa Lints Example Configuration #
This file shows how to configure saropa_lints with all 1677+ rules.
Setup #
- Add to
pubspec.yaml:
dev_dependencies:
saropa_lints: ^5.0.0
- Add to
analysis_options.yaml:
analyzer:
plugins:
- saropa_lints
saropa_lints:
tier: recommended # essential | recommended | professional | comprehensive | pedantic
Configuration Reference #
See analysis_options_template.yaml for the complete configuration with all rules organized by category:
- Security - Credentials, encryption, input validation
- Accessibility - Screen readers, touch targets, semantics
- Null Safety - Proper null handling
- Error Handling - Exception management
- Architecture - Clean architecture patterns
- Flutter Lifecycle - Widget state management
- Performance - Build optimization, memory
- Async - Futures, Streams
- Collections - Safe collection usage
- Control Flow - Conditionals, loops
- And 20+ more categories...
Importance Levels #
Each rule is tagged with an importance level:
| Level | Meaning |
|---|---|
[CRITICAL] |
Bugs, crashes, data loss, security issues |
[HIGH] |
Likely bugs, performance problems |
[MEDIUM] |
Code quality, maintainability |
[LOW] |
Style preferences |
[NOISY] |
Valid but generates many warnings |
Running the Linter #
dart analyze