make the line-length script respect 100 char limit XD (#240)

🤣 🤣 🤣
This commit is contained in:
Who? Me?! 2018-11-26 11:13:21 -06:00 committed by GitHub
parent fe35892c78
commit 3a804956e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,9 @@ for file in "$@" ; do
(( inside_block = !$inside_block ))
continue
fi
if ! (( $inside_block )) && ! [[ "$line" =~ " | "|"-|-"|"://"|"]:"|\[\^[^\ ]+\]: ]] && (( "${#line}" > $MAX_LINE_LENGTH )) ; then
if ! (( $inside_block )) \
&& ! [[ "$line" =~ " | "|"-|-"|"://"|"]:"|\[\^[^\ ]+\]: ]] \
&& (( "${#line}" > $MAX_LINE_LENGTH )) ; then
(( bad_lines++ ))
echo -e "\t$line_no : $line"
fi