We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f10ca99 commit 29afe45Copy full SHA for 29afe45
tests/script.sh
@@ -63,3 +63,10 @@ if [[ ! -z "${trailing_whitespace}" ]]; then
63
echo -e "${trailing_whitespace}" | perl -pe 's/^(.*)$/Trailing whitespace found in \1/'
64
exit 1
65
fi
66
+
67
+# Prohibit long lines in php files.
68
+long_lines=$(find . -type "f" -iname "*.php" -exec awk '{print FILENAME":"NR" "length}' {} \; | awk '$2 > 120')
69
+if [[ ! -z "${long_lines}" ]]; then
70
+ echo -e "${long_lines}" | perl -pe 's/^(.*)$/Long lines found in \1/'
71
+ exit 1
72
+fi
0 commit comments