mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-02 19:05:32 -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:
|
||||
crystal tool format --check
|
||||
./bin/ameba
|
||||
./scripts/linewidth.sh
|
||||
|
||||
install:
|
||||
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