From 1000b02ae0c334f5737068259c0dc68f0e42e083 Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Mon, 14 Dec 2020 14:59:18 +0000 Subject: [PATCH] Exclude /src/routes/api.cr from line width check --- dev/linewidth.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/linewidth.sh b/dev/linewidth.sh index 7f76fcb..6e83fbc 100755 --- a/dev/linewidth.sh +++ b/dev/linewidth.sh @@ -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