Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: tool/ensure_dartfmt.sh

Issue 1138063003: pkg/box2d: 0.2.0 release (Closed) Base URL: https://github.com/google/dbox2d.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pubspec.yaml ('k') | tool/travis.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/sh
2
3 dart_files=$(git ls-tree --name-only --full-tree -r HEAD | grep '.dart$')
4 [ -z "$dart_files" ] && exit 0
5
6 unformatted=$(dartfmt -n $dart_files)
7 [ -z "$unformatted" ] && exit 0
8
9 # Some files are not dartfmt'd. Print message and fail.
10 echo >&2 "dart files must be formatted with dartfmt. Please run:"
11 for fn in $unformatted; do
12 echo >&2 " dartfmt -w $PWD/$fn"
13 done
14
15 exit 1
OLDNEW
« no previous file with comments | « pubspec.yaml ('k') | tool/travis.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698