An opiniated set of lint rules for Dart and Flutter projects. Made by yours truly Floating Dartists.
fd_lints is implemented using analysis_server_plugin. As such, it is installed through analysis_options.yaml
Create an analysis_options.yaml next to your pubspec.yaml and add:
plugins:
fd_lints: <version number>Once fd_lints is installed, dart analyze will show warnings
from the lint rules created by fd_lints.
Since your project should already have fd_lints installed
(cf installing fd_lints), then you should be
able to run:
dart analyze- ℹ️ : info
⚠️ : warning- ❌ : error
| Rule | Severity |
|---|---|
| avoid_non_null_assertion | |
| avoid_as | |
| do_not_mutate_unmodifiable_list_view | ❌ |
| do_not_mutate_unmodifiable_map_view | ❌ |
| do_not_mutate_unmodifiable_set_view | ❌ |