fd_lints 3.0.0 copy "fd_lints: ^3.0.0" to clipboard
fd_lints: ^3.0.0 copied to clipboard

An opiniated set of lint rules for Dart and Flutter projects. Made by yours truly Floating Dartists.

fd_lints #

Floating Dartists

Pub Version

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 #

  • ℹ️ : 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
2
likes
160
points
294
downloads

Publisher

verified publisherfloating-dartists.dev

Weekly Downloads

An opiniated set of lint rules for Dart and Flutter projects. Made by yours truly Floating Dartists.

Repository (GitHub)
View/report issues

Topics

#lints

Documentation

API reference

License

MIT (license)

Dependencies

analysis_server_plugin, analyzer, analyzer_plugin

More

Packages that depend on fd_lints