- refactor remove duplicate lint rule
use_rethrow_when_possible
- feat: additional lint rules:
-
refactor: remove redundant lint rule
prefer-declaring-const-constructors
-
refactor set
ignore-single-boolean
totrue
forprefer-named-boolean-parameters
lint rule -
feat: additional lint rules:
- avoid-referencing-discarded-variables
- avoid-unconditional-break
- avoid-weak-cryptographic-algorithms
- avoid-identical-exception-handling-blocks
- avoid-recursive-calls
- move-variable-closer-to-its-usage
- avoid-missing-interpolation
- avoid-unnecessary-if
- avoid-passing-default-values
- avoid-passing-self-as-argument
- prefer-trailing-comma
- feat: additional lint rules:
-
refactor: remove
dart_code_metrics
dependency fromanalysis_options.yaml
-
refactor: remove banned-usage
RichText
identifier in favour of prefer-text-rich -
refactor: increase
max-identifier-length
of prefer-correct-identifier-length to 40 -
fix: set
ignore-blocs
totrue
fordispose-fields
(BlocProvider automatically handles disposal of the Bloc that is created viaCreate
function) -
feat: additional lint rules:
- avoid-map-keys-contains
- avoid-duplicate-mixins
- avoid-nullable-interpolation
- prefer-named-boolean-parameters
ignore-single: true
- avoid-unused-instances
- prefer-correct-for-loop-increment
- prefer-public-exception-classes
- match-class-name-pattern
entries: - path: .*_bloc_event.dart' pattern: 'Event$' - path: 'data/.*_request_body.dart' pattern: 'RequestBody$' - path: 'data/.*_response.dart' pattern: 'Response$'
- avoid-unnecessary-reassignment
- prefer-correct-error-name
allowed-names: - ex
- avoid-long-functions
exclude: - test/** ignored-names: - build - builder - listener - itemBuilder
refactor: exclude /test
folder from avoid-importing-entrypoint-exports
rule
fix: ignore parameter shadowing for avoid-shadowing
rule
fix add short variable exceptions [ 'x', 'y', 'id' ]
to prefer-correct-identifier-length
fix ignore static members for prefer-widget-private-members
rule:
refactor: remove refer-type-over-var
, because of conflict with avoid-explicit-type-declaration
-
feat: update deprecated rule:
-
feat: add new parameter exceptions to no-equal-arguments rule:
backgroundColor
barrierColor
focusedBorder
enabledBorder
topLeft
topRight
bottomLeft
bottomRight
highlightColor
splashColor
selectedItemColor
unselectedItemColor
selectedLabelStyle
unselectedLabelStyle
-
feat: update
widgets-oder
config to of member-ordering rule to keep private methods last:member-ordering:
widgets-order:
...
-private-methods
-
feat: additional lint rules:
- prefer-type-over-var
- avoid-mutating-parameters
- no-equal-nested-conditions
- avoid-negated-conditions
- avoid-unnecessary-futures
- avoid-shadowed-extension-methods
- avoid-importing-entrypoint-exports
- prefer-date-format
- prefer-correct-identifier-length
- no-equal-conditions
- prefer-returning-conditional-expressions
- avoid-unrelated-type-casts
- prefer-declaring-const-constructors
- avoid-missed-calls
- Add
analysis_options
used at Chili Labs