mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
[CI]: dart analyze --fatal-infos (#954)
This commit is contained in:
@@ -12,7 +12,11 @@ function ci_projects () {
|
||||
flutter pub get
|
||||
|
||||
# Run the analyzer to find any static analysis issues.
|
||||
dart analyze
|
||||
if [ "$channel" == 'stable' ]; then
|
||||
dart analyze --fatal-infos
|
||||
else
|
||||
dart analyze
|
||||
fi
|
||||
|
||||
# Run the formatter on all the dart files to make sure everything's linted.
|
||||
dart format --output none --set-exit-if-changed .
|
||||
|
||||
Reference in New Issue
Block a user