Skip to content

Commit 2dcd504

Browse files
James DeFelicejdef
James DeFelice
authored andcommitted
build: check for proto line length violations
1 parent f2120c8 commit 2dcd504

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ else
2828
diff "$@" "$?" > /dev/null 2>&1 || cp -f "$?" "$@"
2929
endif
3030

31-
build: $(CSI_PROTO)
31+
build: check
3232

3333
# If this is not running on Travis-CI then for sake of convenience
3434
# go ahead and update the language bindings as well.
@@ -43,4 +43,8 @@ clean:
4343
clobber: clean
4444
rm -f $(CSI_PROTO) $(CSI_PROTO).tmp
4545

46-
.PHONY: clean clobber
46+
# check generated files for violation of standards
47+
check: $(CSI_PROTO)
48+
awk '{ if (length > 72) print NR, $$0 }' $? | diff - /dev/null
49+
50+
.PHONY: clean clobber check

0 commit comments

Comments
 (0)