fix formatting to include test, exclude lib/src/js

R=sigmund@google.com

Review URL: https://codereview.chromium.org/953093005
This commit is contained in:
John Messerly 2015-02-24 16:56:13 -08:00
parent 5c1c9c2381
commit 0e46bb35ba
2 changed files with 3 additions and 5 deletions

View file

@ -8,10 +8,8 @@
library ddc.test.codegen_test;
import 'dart:io';
import 'package:analyzer/src/generated/engine.dart'
show AnalysisEngine, Logger;
import 'package:analyzer/src/generated/java_engine.dart'
show CaughtException;
import 'package:analyzer/src/generated/engine.dart' show AnalysisEngine, Logger;
import 'package:analyzer/src/generated/java_engine.dart' show CaughtException;
import 'package:args/args.dart';
import 'package:cli_util/cli_util.dart' show getSdkDir;
import 'package:ddc/devc.dart';

View file

@ -69,7 +69,7 @@ dartanalyzer --fatal-warnings --package-warnings bin/devc.dart | (! grep $PWD) \
# * subdirectories of test/ and tool/, unless explicitly added. Those dirs
# contain a lot of generated or external source we should not reformat.
(files=`git ls-files 'bin/*.dart' 'lib/*.dart' test/*.dart test/checker/*.dart \
tool/*.dart | grep -v test/`; git status -s $files | grep -q . \
tool/*.dart | grep -v lib/src/js/`; git status -s $files | grep -q . \
&& echo "Did not run the formatter, please commit edited files first." \
|| (echo "Running dart formatter" ; pub run dart_style:format -w $files))
popd &> /dev/null