Skip to content

Commit

Permalink
Disable one_member_abstracts
Browse files Browse the repository at this point in the history
As already definied in the comment, it makes sense to define interfaces (abstract classes in dart) architecture wise when defining boundaries. A Function reference is not a good replacement because it is very likely that new functions will be added which then would result in a breaking change.

Fixes #2
  • Loading branch information
passsy committed Oct 4, 2019
1 parent 7221732 commit 58007da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ linter:

# Defining interfaces (abstract classes), with only one method, makes sense architecture wise
# https://dart-lang.github.io/linter/lints/one_member_abstracts.html
- one_member_abstracts
# - one_member_abstracts

# Since Errors aren't intended to be caught (see avoid_catching_errors), throwing anything
# doesn't cause trouble.
Expand Down

0 comments on commit 58007da

Please sign in to comment.