Enforce non-whitespace formatting rules

This commit is contained in:
Natalie Weizenbaum 2018-11-14 13:48:31 -08:00
parent 80afdd88f8
commit 5d885e6905
3 changed files with 4 additions and 4 deletions

View File

@ -29,9 +29,9 @@ dependencies:
dev_dependencies:
archive: ">=1.0.0 <3.0.0"
analyzer: ">=0.30.0 <0.33.0"
analyzer: ">=0.30.0 <0.34.0"
crypto: ">=0.9.2 <3.0.0"
dart_style: "^1.0.0"
dart_style: "^1.2.0"
grinder: "^0.8.0"
http: "^0.11.0"
js: "^0.6.0"

View File

@ -3,7 +3,7 @@
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT.
unformatted=`pub run dart_style:format -n bin/ lib/ tool/ test/`
unformatted=`pub run dart_style:format --fix -n bin/ lib/ tool/ test/`
if [[ -z "$unformatted" ]]; then
exit 0
else

View File

@ -26,7 +26,7 @@ all() {}
format() {
Pub.run('dart_style',
script: 'format',
arguments: ['--overwrite']
arguments: ['--overwrite', '--fix']
..addAll(existingSourceDirs.map((dir) => dir.path)));
}