Commit 75445144 authored by Ian Hickson's avatar Ian Hickson

Merge pull request #2566 from Hixie/avoid_empty_else_lint

Remove the _EquationMember.hashCode override
parents 167c433a 1d035228
...@@ -24,8 +24,4 @@ abstract class _EquationMember { ...@@ -24,8 +24,4 @@ abstract class _EquationMember {
Expression operator *(_EquationMember m) => asExpression() * m; Expression operator *(_EquationMember m) => asExpression() * m;
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: ...@@ -13,6 +13,7 @@ analyzer:
todo: ignore todo: ignore
linter: linter:
rules: rules:
- avoid_empty_else
- always_declare_return_types - always_declare_return_types
# we'll turn on avoid_as as soon as it doesn't complain about "as dynamic" # we'll turn on avoid_as as soon as it doesn't complain about "as dynamic"
# - avoid_as # - avoid_as
...@@ -20,6 +21,7 @@ linter: ...@@ -20,6 +21,7 @@ linter:
# sometimes we have no choice (e.g. when matching other platforms) # sometimes we have no choice (e.g. when matching other platforms)
# - constant_identifier_names # - constant_identifier_names
- empty_constructor_bodies - empty_constructor_bodies
- hash_and_equals
# disabled until regexp fix is pulled in (https://github.com/flutter/flutter/pull/1996) # disabled until regexp fix is pulled in (https://github.com/flutter/flutter/pull/1996)
# - library_names # - library_names
- library_prefixes - library_prefixes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment