Exclude /src/routes/api.cr from line width check

This commit is contained in:
Alex Ling 2020-12-14 14:59:18 +00:00
parent 1f795889a9
commit 1000b02ae0

View File

@ -1,5 +1,5 @@
#!/bin/sh
[ ! -z "$(grep '.\{80\}' --exclude-dir=lib --include="*.cr" -nr --color=always . | tee /dev/tty)" ] \
[ ! -z "$(grep '.\{80\}' --exclude-dir=lib --include="*.cr" -nr --color=always . | grep -v "routes/api.cr" | tee /dev/tty)" ] \
&& echo "The above lines exceed the 80 characters limit" \
|| exit 0