Merge pull request #2566 from Hixie/avoid_empty_else_lint
Remove the _EquationMember.hashCode override
This commit is contained in:
commit
7544514484
@ -24,8 +24,4 @@ abstract class _EquationMember {
|
||||
Expression operator *(_EquationMember m) => asExpression() * m;
|
||||
|
||||
Expression operator /(_EquationMember m) => asExpression() / m;
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
throw "An equation member is not comparable and cannot be added to collections";
|
||||
}
|
||||
|
@ -13,6 +13,7 @@ analyzer:
|
||||
todo: ignore
|
||||
linter:
|
||||
rules:
|
||||
- avoid_empty_else
|
||||
- always_declare_return_types
|
||||
# we'll turn on avoid_as as soon as it doesn't complain about "as dynamic"
|
||||
# - avoid_as
|
||||
@ -20,6 +21,7 @@ linter:
|
||||
# sometimes we have no choice (e.g. when matching other platforms)
|
||||
# - constant_identifier_names
|
||||
- empty_constructor_bodies
|
||||
- hash_and_equals
|
||||
# disabled until regexp fix is pulled in (https://github.com/flutter/flutter/pull/1996)
|
||||
# - library_names
|
||||
- library_prefixes
|
||||
|
Loading…
x
Reference in New Issue
Block a user