|
| 1 | +# This file configures the static analysis results for your project (errors, |
| 2 | +# warnings, and lints). |
| 3 | +# |
| 4 | +# This enables the 'recommended' set of lints from `package:lints`. |
| 5 | +# This set helps identify many issues that may lead to problems when running |
| 6 | +# or consuming Dart code, and enforces writing Dart using a single, idiomatic |
| 7 | +# style and format. |
| 8 | +# |
| 9 | +# If you want a smaller set of lints you can change this to specify |
| 10 | +# 'package:lints/core.yaml'. These are just the most critical lints |
| 11 | +# (the recommended set includes the core lints). |
| 12 | +# The core lints are also what is used by pub.dev for scoring packages. |
| 13 | + |
| 14 | +include: package:lints/recommended.yaml |
| 15 | + |
| 16 | +plugins: |
| 17 | + grumpy_lints: |
| 18 | + path: ../grumpy_lints |
| 19 | + diagnostics: |
| 20 | + leaf_preview_must_not_use_injectables_or_navigation: true |
| 21 | + must_call_in_constructor: true |
| 22 | + abstract_classes_should_set_log_group: true |
| 23 | + concrete_classes_should_set_log_tag: true |
| 24 | + base_class: true |
| 25 | + domain_factory_from_di: true |
| 26 | + prefer_domain_di_factory: true |
| 27 | + lifecycle_mixin_requires_singleton: true |
| 28 | + |
| 29 | +analyzer: |
| 30 | + exclude: |
| 31 | + - "**/*.g.dart" |
| 32 | + - "**/*.freezed.dart" |
| 33 | + |
| 34 | +linter: |
| 35 | + rules: |
| 36 | + public_member_api_docs: true |
| 37 | + package_prefixed_library_names: true |
| 38 | + library_private_types_in_public_api: true |
| 39 | + package_names: true |
| 40 | + lines_longer_than_80_chars: false |
| 41 | + sort_pub_dependencies: true |
| 42 | + join_return_with_assignment: true |
| 43 | + prefer_for_elements_to_map_fromIterable: true |
| 44 | + null_check_on_nullable_type_parameter: true |
| 45 | + enable_null_safety: true |
| 46 | + avoid_print: true |
| 47 | + prefer_final_locals: true |
| 48 | + prefer_const_constructors: true |
| 49 | + document_ignores: true |
| 50 | + prefer_single_quotes: true |
0 commit comments