Use new Dart tool for formatting and analysis

This commit is contained in:
Simon Binder 2020-10-13 18:19:06 +02:00
parent 8b3e6a55d1
commit fc034701d0
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
1 changed files with 6 additions and 6 deletions

View File

@ -4,8 +4,8 @@ EXIT_CODE=0
cd moor
echo $(pwd)
dartfmt -n --set-exit-if-changed . || EXIT_CODE=$?
dartanalyzer --options analysis_options.yaml --fatal-infos --fatal-warnings lib/ test/ || EXIT_CODE=$?
dart format -o none --set-exit-if-changed . || EXIT_CODE=$?
dart analyze --fatal-infos --fatal-warnings || EXIT_CODE=$?
cd ..
# todo we don't analyze this subproject because Flutter isn't installed in the CI
@ -23,13 +23,13 @@ cd ..
cd moor_generator
echo $(pwd)
dartfmt -n --set-exit-if-changed . || EXIT_CODE=$?
dartanalyzer --options analysis_options.yaml --fatal-infos --fatal-warnings lib/ test/ || EXIT_CODE=$?
dart format -o none --set-exit-if-changed . || EXIT_CODE=$?
dart analyze --fatal-infos --fatal-warnings || EXIT_CODE=$?
cd ..
cd sqlparser
echo $(pwd)
dartfmt -n --set-exit-if-changed . || EXIT_CODE=$?
dartanalyzer --options analysis_options.yaml --fatal-infos --fatal-warnings lib/ test/ || EXIT_CODE=$?
dart format -o none --set-exit-if-changed . || EXIT_CODE=$?
dart analyze --fatal-infos --fatal-warnings || EXIT_CODE=$?
exit $EXIT_CODE