about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide/ci
diff options
context:
space:
mode:
authorWho? Me?! <mark-i-m@users.noreply.github.com>2018-11-26 11:13:21 -0600
committerGitHub <noreply@github.com>2018-11-26 11:13:21 -0600
commit32a766cafe5a8decc42ceb1af4eafec7f96c7226 (patch)
tree6036120769ec3682dc6378927977ebc2bc4c88ed /src/doc/rustc-dev-guide/ci
parentd0192104dfa00044a9739a9f2706672861e4d8c4 (diff)
downloadrust-32a766cafe5a8decc42ceb1af4eafec7f96c7226.tar.gz
rust-32a766cafe5a8decc42ceb1af4eafec7f96c7226.zip
make the line-length script respect 100 char limit XD (#240)
:rofl: :rofl: :rofl: 
Diffstat (limited to 'src/doc/rustc-dev-guide/ci')
-rwxr-xr-xsrc/doc/rustc-dev-guide/ci/check_line_lengths.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/doc/rustc-dev-guide/ci/check_line_lengths.sh b/src/doc/rustc-dev-guide/ci/check_line_lengths.sh
index 5b7b12d3e5e..32bf739e4dc 100755
--- a/src/doc/rustc-dev-guide/ci/check_line_lengths.sh
+++ b/src/doc/rustc-dev-guide/ci/check_line_lengths.sh
@@ -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