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

Side by Side Diff: runtime/observatory/tool/ensure_dartfmt.sh

Issue 2345023003: Use dartfmt on Observatory code (Closed)
Patch Set: merge Created 4 years, 3 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 | « runtime/observatory/lib/utils.dart ('k') | runtime/observatory/web/main.dart » ('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=$(find lib web -name "*.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 | « runtime/observatory/lib/utils.dart ('k') | runtime/observatory/web/main.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698