Skip to content

Commit

Permalink
use dartanalyzer instead
Browse files Browse the repository at this point in the history
  • Loading branch information
tomyeh committed Jun 4, 2013
1 parent 0d0d3b6 commit 72385d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ set -e

DIR=$( cd $( dirname "${BASH_SOURCE[0]}" ) && pwd )

# Note: dart_analyzer needs to be run from the root directory for proper path
# Note: dartanalyzer needs to be run from the root directory for proper path
# canonicalization.
pushd $DIR/..
echo Analyzing library for warnings or type errors
dart_analyzer --fatal-warnings --fatal-type-errors lib/*.dart lib/view/*.dart \
dartanalyzer --fatal-warnings --fatal-type-errors lib/*.dart lib/view/*.dart \
|| echo -e "Ignoring analyzer errors"

for fn in `grep -rl 'main[(][)]' test/*.dart example/*/*.dart|grep -v packages/`; do
echo Analyzing $fn
dart_analyzer --fatal-warnings --fatal-type-errors lib/*.dart \
dartanalyzer --fatal-warnings --fatal-type-errors lib/*.dart \
|| echo -e "Ignoring analyzer errors"
done

Expand Down

0 comments on commit 72385d7

Please sign in to comment.