diff options
| author | Who? Me?! <mark-i-m@users.noreply.github.com> | 2018-11-26 11:13:21 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-26 11:13:21 -0600 |
| commit | 32a766cafe5a8decc42ceb1af4eafec7f96c7226 (patch) | |
| tree | 6036120769ec3682dc6378927977ebc2bc4c88ed /src/doc/rustc-dev-guide | |
| parent | d0192104dfa00044a9739a9f2706672861e4d8c4 (diff) | |
| download | rust-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')
| -rwxr-xr-x | src/doc/rustc-dev-guide/ci/check_line_lengths.sh | 4 |
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 |
