Skip to content

Commit

Permalink
ci: add usage and design rules from Effective Dart
Browse files Browse the repository at this point in the history
  • Loading branch information
falko17 committed Dec 7, 2021
1 parent 06d2a8b commit 4a31870
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,19 @@ linter:
- package_api_docs
- public_member_api_docs
- comment_references
- prefer_interpolation_to_compose_strings
- unnecesary_lambdas
- lines_longer_than_80_chars
- avoid_catches_without_on_clauses # no pokémon exception handling (at least only catch Exception)
- avoid_catching_errors
- use_to_and_as_if_applicable # this rule may cause false positives, if so, just disable it
- prefer_mixin
- use_setters_to_change_properties
- avoid_setters_without_getters # use a method instead
- avoid_returning_this # use cascades instead
- type_annotate_public_apis
- avoid_types_on_closure_parameters
- avoid_positional_boolean_parameters

dart_code_metrics:
anti-patterns:
Expand Down

0 comments on commit 4a31870

Please sign in to comment.