mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-03 11:25:29 -04:00
Enforce 80 characters limit in make check
This commit is contained in:
parent
1bec9f0108
commit
c3608c101b
1
Makefile
1
Makefile
@ -25,6 +25,7 @@ test:
|
|||||||
check:
|
check:
|
||||||
crystal tool format --check
|
crystal tool format --check
|
||||||
./bin/ameba
|
./bin/ameba
|
||||||
|
./scripts/linewidth.sh
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp mango $(INSTALL_DIR)/mango
|
cp mango $(INSTALL_DIR)/mango
|
||||||
|
5
scripts/linewidth.sh
Executable file
5
scripts/linewidth.sh
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
[ ! -z "$(grep '.\{80\}' --exclude-dir=lib --include="*.cr" -nr --color=always . | tee /dev/tty)" ] \
|
||||||
|
&& echo "The above lines exceed the 80 characters limit" \
|
||||||
|
|| exit 0
|
Loading…
x
Reference in New Issue
Block a user