Skip to content

Commit

Permalink
make the line-length script respect 100 char limit XD (#240)
Browse files Browse the repository at this point in the history
🤣 🤣 🤣
  • Loading branch information
mark-i-m authored Nov 26, 2018
1 parent fe35892 commit 3a80495
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ci/check_line_lengths.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a80495

Please sign in to comment.