| OLD | NEW |
| (Empty) | |
| 1 #!/bin/bash |
| 2 set -e |
| 3 |
| 4 # Switch to the root directory of dev_compiler |
| 5 cd $( dirname "${BASH_SOURCE[0]}" )/.. |
| 6 |
| 7 # Run analyzer on bin/devc.dart, as it includes most of the code we care about |
| 8 # via transitive dependencies. This seems to be the only fast way to avoid |
| 9 # repeated analysis of the same code. |
| 10 # TODO(jmesserly): ideally we could do test/all_tests.dart, but |
| 11 # dart_runtime_test.dart creates invalid generic type instantiation AA. |
| 12 echo "Running dartanalyzer to check for errors/warnings/hints..." |
| 13 dartanalyzer --fatal-warnings --package-warnings bin/devc.dart | (! grep $PWD) \ |
| 14 || fail |
| OLD | NEW |