Skip to content

Commit

Permalink
feat: update preset
Browse files Browse the repository at this point in the history
  • Loading branch information
papertigify committed May 27, 2024
1 parent f357c98 commit 8116c06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
14 changes: 2 additions & 12 deletions lib/dart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,12 @@ dart_code_metrics:
- avoid-dynamic
- avoid-equal-expressions
- avoid-explicit-pattern-field-name
- avoid-explicit-type-declaration
- avoid-extensions-on-records
- avoid-function-type-in-records
- avoid-future-tostring
- avoid-generics-shadowing
- avoid-global-state
- avoid-identical-exception-handling-blocks
- avoid-ignoring-return-values
- avoid-inverted-boolean-checks
- avoid-keywords-in-wildcard-pattern
- avoid-local-functions
Expand Down Expand Up @@ -103,9 +101,9 @@ dart_code_metrics:
- avoid-unused-parameters
- binary-expression-operand-order
- double-literal-format:
explicit-trailing-zero: true
explicit-trailing-zero: false
- format-comment:
only-doc-comments: false
only-doc-comments: true
- function-always-returns-null
- map-keys-ordering
- match-positional-field-names-on-assignment
Expand Down Expand Up @@ -142,24 +140,16 @@ dart_code_metrics:
- newline-before-return
- no-boolean-literal-compare
- no-empty-block
- no-equal-arguments:
ignored-parameters:
- height
- width
- no-equal-conditions
- no-equal-nested-conditions
- no-equal-switch-case
- no-equal-switch-expression-cases
- no-equal-then-else
- no-magic-number:
allowed: [ -1, 0, 1 ]
- no-object-declaration
- prefer-addition-subtraction-assignments
- prefer-any-or-every
- prefer-correct-callback-field-name:
name-pattern: ^on[A-Z]+
- prefer-correct-error-name:
allowed-names: [ error, exception, failure ]
- prefer-correct-identifier-length:
max-identifier-length: 30
min-identifier-length: 2
Expand Down
1 change: 0 additions & 1 deletion lib/flutter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,5 @@ dart_code_metrics:
- prefer-sliver-prefix
- prefer-text-rich
- prefer-using-list-view
- prefer-widget-private-members
- proper-super-calls
- use-setstate-synchronously

0 comments on commit 8116c06

Please sign in to comment.