Last active
June 22, 2021 15:11
-
-
Save unger1984/0c087f9a90c6e8516ea03b16b4d2b437 to your computer and use it in GitHub Desktop.
analysis_options.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| include: package:lint/analysis_options.yaml | |
| analyzer: | |
| plugins: | |
| - dart_code_metrics | |
| exclude: | |
| - "**/*.g.dart" | |
| - "**/*.freezed.dart" | |
| - "lib/generated/**" | |
| language: | |
| strict-inference: true | |
| strict-raw-types: true | |
| linter: | |
| rules: | |
| always_use_package_imports: true | |
| avoid_positional_boolean_parameters: false | |
| sort_pub_dependencies: false | |
| void_positional_boolean_parameters: false | |
| dart_code_metrics: | |
| anti-patterns: | |
| - long-method | |
| - long-parameter-list | |
| metrics: | |
| cyclomatic-complexity: 20 | |
| maximum-nesting-level: 5 | |
| number-of-parameters: 4 | |
| source-lines-of-code: 50 | |
| metrics-exclude: | |
| - test/** | |
| rules: | |
| - always-remove-listener | |
| - avoid-non-null-assertion | |
| - avoid-returning-widgets | |
| - avoid-unnecessary-setstate | |
| - avoid-unused-parameters | |
| - avoid-wrapping-in-padding | |
| - double-literal-format | |
| - newline-before-return | |
| - no-boolean-literal-compare | |
| - no-empty-block | |
| - no-equal-then-else | |
| - prefer-conditional-expressions | |
| - prefer-extracting-callbacks | |
| - prefer-trailing-comma |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment