Skip to content

Commit

Permalink
updating package dependencies and analysis choices
Browse files Browse the repository at this point in the history
  • Loading branch information
FMorschel committed Nov 14, 2024
1 parent 2e0d940 commit 9dec6dc
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 71 deletions.
31 changes: 16 additions & 15 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,22 @@ linter:

dart_code_metrics:
rules:
- prefer-commenting-analyzer-ignores
- prefer-first
- prefer-immediate-return
- prefer-last

- always-remove-listener
- avoid-border-all
- avoid-returning-widgets:
ignored-names:
- testFunction
ignored-annotations:
- allowedAnnotation
- avoid-unnecessary-setstate
- avoid-wrapping-in-padding
- prefer-const-border-radius

- double-literal-format
- format-comment
- member-ordering-extended:
Expand Down Expand Up @@ -123,18 +139,3 @@ dart_code_metrics:
- public-methods
- private-methods
- getters-setters
- prefer-commenting-analyzer-ignores
- prefer-first
- prefer-immediate-return
- prefer-last

- always-remove-listener
- avoid-border-all
- avoid-returning-widgets:
ignored-names:
- testFunction
ignored-annotations:
- allowedAnnotation
- avoid-unnecessary-setstate
- avoid-wrapping-in-padding
- prefer-const-border-radius
109 changes: 55 additions & 54 deletions example/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,60 +12,6 @@ analyzer:
errors:
missing_required_param: error

dart_code_metrics:
rules:
- double-literal-format
- format-comment
- member-ordering-extended:
alphabetize: false
order:
- constructors
- named-constructors
- factory-constructors
- static-getters-setters
- static-const-public-fields
- static-const-private-fields
- static-final-public-fields
- static-final-private-fields
- static-late-final-public-fields
- static-late-final-private-fields
- static-late-public-fields
- static-late-private-fields
- static-public-fields
- static-private-fields
- const-public-fields
- const-private-fields
- final-public-fields
- final-private-fields
- late-final-public-fields
- late-final-private-fields
- late-public-fields
- late-private-fields
- public-fields
- private-fields
- overridden-public-fields
- overriden-public-methods
- static-public-methods
- static-private-methods
- public-methods
- private-methods
- getters-setters
- prefer-commenting-analyzer-ignores
- prefer-first
- prefer-immediate-return
- prefer-last

- always-remove-listener
- avoid-border-all
- avoid-returning-widgets:
ignored-names:
- testFunction
ignored-annotations:
- allowedAnnotation
- avoid-unnecessary-setstate
- avoid-wrapping-in-padding
- prefer-const-border-radius

linter:
rules:
omit_local_variable_types: false
Expand Down Expand Up @@ -140,3 +86,58 @@ linter:
use_test_throws_matchers: true
use_to_and_as_if_applicable: true
void_checks: true

dart_code_metrics:
rules:
- prefer-commenting-analyzer-ignores
- prefer-first
- prefer-immediate-return
- prefer-last

- always-remove-listener
- avoid-border-all
- avoid-returning-widgets:
ignored-names:
- testFunction
ignored-annotations:
- allowedAnnotation
- avoid-unnecessary-setstate
- avoid-wrapping-in-padding
- prefer-const-border-radius

- double-literal-format
- format-comment
- member-ordering-extended:
alphabetize: false
order:
- constructors
- named-constructors
- factory-constructors
- static-getters-setters
- static-const-public-fields
- static-const-private-fields
- static-final-public-fields
- static-final-private-fields
- static-late-final-public-fields
- static-late-final-private-fields
- static-late-public-fields
- static-late-private-fields
- static-public-fields
- static-private-fields
- const-public-fields
- const-private-fields
- final-public-fields
- final-private-fields
- late-final-public-fields
- late-final-private-fields
- late-public-fields
- late-private-fields
- public-fields
- private-fields
- overridden-public-fields
- overriden-public-methods
- static-public-methods
- static-private-methods
- public-methods
- private-methods
- getters-setters
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
path: ../

dev_dependencies:
dart_code_metrics: ^5.7.3
dart_code_metrics: 5.7.4
lints: ^2.0.0
test: ^1.16.0
very_good_analysis: ^5.1.0
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies:
time: '>=2.1.3 <3.0.0'

dev_dependencies:
dart_code_metrics: 5.7.4
dart_code_metrics: 5.7.4
dartdoc: ^6.2.1
lints: ^2.0.0
test: ^1.24.0
Expand Down

0 comments on commit 9dec6dc

Please sign in to comment.