Skip to content

Commit ee4a30d

Browse files
authored
format: fix exit code of check when using clang-format (#133)
clang-format violations are treated as warnings, so the exit code is 0 unless Werror is specified.
1 parent a18c57d commit ee4a30d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

format/private/format.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ case "$mode" in
101101
tfmode="-check -diff"
102102
jsonnetmode="--test"
103103
scalamode="--test"
104-
clangformatmode="--style=file --fallback-style=none --dry-run"
104+
clangformatmode="--style=file --fallback-style=none --dry-run -Werror"
105105
;;
106106
fix)
107107
swiftmode=""

0 commit comments

Comments
 (0)