11analyzer :
22 errors :
33 todo : ignore
4- plugins :
5- - dart_code_metrics # https://github.com/dart-code-checker/dart-code-metrics
4+
65linter :
76 rules :
87 - always_declare_return_types
98 - always_put_control_body_on_new_line
109 # - always_put_required_named_parameters_first # not useful for widgets in which the option key is the first parameter by convention
11- - always_require_non_null_named_parameters
1210 # - always_specify_types # This would enforce to write types literally everywhere.
1311 - annotate_overrides
1412 # - avoid_annotating_with_dynamic # Explicit annotation of dynamic as type is preferable. Also exclusive with type_annotate_public_apis
@@ -30,8 +28,6 @@ linter:
3028 - avoid_renaming_method_parameters
3129 - avoid_relative_lib_imports
3230 - avoid_return_types_on_setters
33- - avoid_returning_null
34- - avoid_returning_null_for_future
3531 - avoid_returning_null_for_void
3632 - avoid_returning_this
3733 - avoid_setters_without_getters
@@ -62,13 +58,10 @@ linter:
6258 # - flutter_style_todos # Flutter todos are to verbose for our requirements.
6359 - hash_and_equals
6460 - implementation_imports
65- - invariant_booleans
66- - iterable_contains_unrelated_type
6761 # - join_return_with_assignment # leads to less readable code IMHO
6862 - library_names
6963 - library_prefixes
7064 - lines_longer_than_80_chars
71- - list_remove_unrelated_type
7265 - literal_only_boolean_expressions
7366 - no_adjacent_strings_in_list
7467 - no_duplicate_case_values
@@ -78,7 +71,6 @@ linter:
7871 - one_member_abstracts
7972 - only_throw_errors
8073 - overridden_fields
81- - package_api_docs
8274 - package_names
8375 - package_prefixed_library_names
8476 - parameter_assignments
@@ -149,15 +141,3 @@ linter:
149141 - use_to_and_as_if_applicable
150142 - valid_regexps
151143 - void_checks
152- dart_code_metrics :
153- metrics :
154- # disable metrics
155- cyclomatic-complexity : 50
156- maximum-nesting-level : 50
157- number-of-parameters : 50
158- source-lines-of-code : 500
159- number-of-methods : 100
160- metrics-exclude :
161- - test/**
162- rules :
163- - avoid-non-null-assertion # comply to engineering standards and avoid !
0 commit comments