From 408e4240d0f5ee87450796f76e3db3ad1c72f07d Mon Sep 17 00:00:00 2001 From: Phil Quitslund Date: Thu, 28 Jul 2016 22:50:40 -0700 Subject: [PATCH] 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). --- packages/flutter_tools/flutter_analysis_options | 5 +++-- packages/flutter_tools/pubspec.yaml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/flutter_tools/flutter_analysis_options b/packages/flutter_tools/flutter_analysis_options index 5721e10cb1..fbc26f990f 100644 --- a/packages/flutter_tools/flutter_analysis_options +++ b/packages/flutter_tools/flutter_analysis_options @@ -35,8 +35,9 @@ linter: - avoid_empty_else # - comment_references # blocked on https://github.com/dart-lang/dartdoc/issues/1153 - control_flow_in_finally + - empty_statements - hash_and_equals - # - iterable_contains_unrelated_type # https://github.com/dart-lang/linter/issues/245 + - iterable_contains_unrelated_type - test_types_in_equals - throw_in_finally - unrelated_type_equality_checks @@ -58,7 +59,7 @@ linter: - library_prefixes - non_constant_identifier_names - 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_prefixed_library_names - prefer_is_not_empty diff --git a/packages/flutter_tools/pubspec.yaml b/packages/flutter_tools/pubspec.yaml index 5634f8dab2..99e4d6161c 100644 --- a/packages/flutter_tools/pubspec.yaml +++ b/packages/flutter_tools/pubspec.yaml @@ -21,7 +21,7 @@ dependencies: # "pub get" for spam about "drudge". json_schema: 1.0.3 - linter: ^0.1.17 + linter: ^0.1.21 meta: ^0.12.0 mustache4dart: ^1.0.0 package_config: '>=0.1.5 <2.0.0'