Commit 408e4240 authored by Phil Quitslund's avatar Phil Quitslund Committed by GitHub

Lint updates in flutter analysis options. (#5130)

* Adds `empty_statements` (new in `0.1.21`).
* (Re)enables `iterable_contains_unrelated_type` (fixed in linter#245).
parent 3cebd041
...@@ -35,8 +35,9 @@ linter: ...@@ -35,8 +35,9 @@ linter:
- avoid_empty_else - avoid_empty_else
# - comment_references # blocked on https://github.com/dart-lang/dartdoc/issues/1153 # - comment_references # blocked on https://github.com/dart-lang/dartdoc/issues/1153
- control_flow_in_finally - control_flow_in_finally
- empty_statements
- hash_and_equals - hash_and_equals
# - iterable_contains_unrelated_type # https://github.com/dart-lang/linter/issues/245 - iterable_contains_unrelated_type
- test_types_in_equals - test_types_in_equals
- throw_in_finally - throw_in_finally
- unrelated_type_equality_checks - unrelated_type_equality_checks
...@@ -58,7 +59,7 @@ linter: ...@@ -58,7 +59,7 @@ linter:
- library_prefixes - library_prefixes
- non_constant_identifier_names - non_constant_identifier_names
- one_member_abstracts - one_member_abstracts
# - overriden_field # the analyzer code itself violates this right now :-) # - overridden_fields # the analyzer code itself violates this right now :-)
- package_api_docs - package_api_docs
- package_prefixed_library_names - package_prefixed_library_names
- prefer_is_not_empty - prefer_is_not_empty
......
...@@ -21,7 +21,7 @@ dependencies: ...@@ -21,7 +21,7 @@ dependencies:
# "pub get" for spam about "drudge". # "pub get" for spam about "drudge".
json_schema: 1.0.3 json_schema: 1.0.3
linter: ^0.1.17 linter: ^0.1.21
meta: ^0.12.0 meta: ^0.12.0
mustache4dart: ^1.0.0 mustache4dart: ^1.0.0
package_config: '>=0.1.5 <2.0.0' package_config: '>=0.1.5 <2.0.0'
......
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