fd_lints
An opiniated set of lint rules for Dart and Flutter projects. Made by yours truly Floating Dartists.
Installing fd_lints
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>
Running fd_lints in the terminal/CI
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
Linter rules
- :information_source: : info
- :warning: : warning
- :x: : error
| Rule | Severity |
|---|---|
| avoid_non_null_assertion | :warning: |
| avoid_as | :warning: |
| do_not_mutate_unmodifiable_list_view | :x: |
| do_not_mutate_unmodifiable_map_view | :x: |
| do_not_mutate_unmodifiable_set_view | :x: |