What will this tool do for me?

1- Generate analysis_options.yaml file for you which includes the best 100 analysis rules over there, with ignoring linting analysis for freezed, get_it and json_serializable generated files.

2- Add the latest version of flutter_lints package

3- Run pub get command

Installing

dart pub global activate analysis_options_cli_generator

The only command over there ..

  aog

to run any dart script you need to add /.pub-cache/bin to your path, you may need also $FLUTTER_HOME/bin/cache/dart-sdk/bin FLUTTER_HOME/.pub-cache/bin

alt text

This command will give you two options :-
- Basic: default rules
- Custom: make you choose whether you want to enable these 4 rules or not
avoid_print
sort_pub_dependencies
sort_constructors_first
prefer_expression_function_bodies

Buy me a coffee

Buy Me A Coffee

Libraries