Skip to content

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

License

Notifications You must be signed in to change notification settings

Floating-Dartists/fd_lints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages