From 0f3cca4424ad6f261d08c3981d699e0ca8a18a5c Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Tue, 13 Oct 2015 16:04:12 -0700 Subject: [PATCH] Fix warnings seen when running skyanalyzer in strong mode --- engine/src/flutter/sky/tools/skyanalyzer | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/src/flutter/sky/tools/skyanalyzer b/engine/src/flutter/sky/tools/skyanalyzer index fc39bb57e9..62e046ebf5 100755 --- a/engine/src/flutter/sky/tools/skyanalyzer +++ b/engine/src/flutter/sky/tools/skyanalyzer @@ -32,10 +32,12 @@ _IGNORED_PATTERNS = [ re.compile(r'^\[hint\] .+ requires dynamic invoke'), # too many false positives, e.g. https://github.com/dart-lang/sdk/issues/24564 re.compile(r'^\[hint\] Runtime check on non-ground type .+ may throw StrongModeError'), # https://github.com/dart-lang/sdk/issues/24565 re.compile(r'^\[hint] \([_, ]+\) .+ has inferred type '), # ignore underscore-only arguments + re.compile(r'^\[error\] Type check failed: .*\(dynamic\) is not of type'), # allow unchecked casts from dynamic # Disable the lint checks that will be caught by code review re.compile(r'^\[lint\] Avoid defining a one-member abstract class when a simple function will do'), re.compile(r'^\[lint\] Prefer using lowerCamelCase for constant names.'), + re.compile(r'^\[lint\] Name non-constant identifiers using lowerCamelCase.'), # TODO: Fix all the warnings in the mojo packages re.compile(r'.*pub-cache.*\.mojom\.dart'),