mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 03:07:49 +00:00
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:
parent
5c1c9c2381
commit
0e46bb35ba
|
@ -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';
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue