mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
5 lines
690 B
Bash
Executable File
5 lines
690 B
Bash
Executable File
echo "Analyzing dart:ui library..."
|
|
RESULTS=`dartanalyzer --ignore-unrecognized-flags --supermixin --enable-strict-call-checks --enable_type_checks --strong --package-warnings --fatal-warnings --strong-hints --fatal-hints --lints out/Debug/gen/sky/bindings/dart_ui.dart 2>&1 | grep -v "\[error\] Native functions can only be declared in the SDK and code that is loaded through native extensions" | grep -Ev "\[(hint|error)\] The function '.+' is not used" | grep -v "\[warning\] Undefined name 'main'" | grep -v "\[info\] TODO" | grep -Ev "[0-9]+ errors.*found." | grep -v "Analyzing \[out/Debug/gen/sky/bindings/dart_ui.dart\]\.\.\."`
|
|
echo "$RESULTS"
|
|
if [ -n "$RESULTS" ]; then exit 1; fi
|