saropa_lints 1.7.1 copy "saropa_lints: ^1.7.1" to clipboard
saropa_lints: ^1.7.1 copied to clipboard

720+ custom lint rules for Flutter and Dart. Static analysis for security, accessibility, and performance. Free and open source. 5 tiers plus optional stylistic rules.

example/example.md

Saropa Lints Example Configuration #

This file shows a complete custom_lint.yaml configuration with all 475+ rules.

Setup #

  1. Add to pubspec.yaml:
dev_dependencies:
  custom_lint: ^0.8.0
  saropa_lints: ^0.1.1
  1. Add to analysis_options.yaml:
analyzer:
  plugins:
    - custom_lint
  1. Copy custom_lint.yaml to your project root and enable the rules you want.

Configuration Reference #

See custom_lint.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 run custom_lint
1
likes
150
points
339
downloads

Publisher

verified publishersaropa.com

Weekly Downloads

720+ custom lint rules for Flutter and Dart. Static analysis for security, accessibility, and performance. Free and open source. 5 tiers plus optional stylistic rules.

Repository (GitHub)
View/report issues
Contributing

Topics

#linter #static-analysis #code-quality #flutter #dart

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, custom_lint_builder

More

Packages that depend on saropa_lints