| Index: tool/analyze.sh
|
| diff --git a/tool/analyze.sh b/tool/analyze.sh
|
| new file mode 100755
|
| index 0000000000000000000000000000000000000000..26c5a0d9e7dbefbe6baa93dd2be41e84db8c16d6
|
| --- /dev/null
|
| +++ b/tool/analyze.sh
|
| @@ -0,0 +1,14 @@
|
| +#!/bin/bash
|
| +set -e
|
| +
|
| +# Switch to the root directory of dev_compiler
|
| +cd $( dirname "${BASH_SOURCE[0]}" )/..
|
| +
|
| +# Run analyzer on bin/devc.dart, as it includes most of the code we care about
|
| +# via transitive dependencies. This seems to be the only fast way to avoid
|
| +# repeated analysis of the same code.
|
| +# TODO(jmesserly): ideally we could do test/all_tests.dart, but
|
| +# dart_runtime_test.dart creates invalid generic type instantiation AA.
|
| +echo "Running dartanalyzer to check for errors/warnings/hints..."
|
| +dartanalyzer --fatal-warnings --package-warnings bin/devc.dart | (! grep $PWD) \
|
| + || fail
|
|
|