diff options
author | w0rp <devw0rp@gmail.com> | 2017-08-30 21:56:43 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-08-30 21:56:43 +0100 |
commit | fca77266bde1ed48b20ec37bab81d05f826e1e6c (patch) | |
tree | fbe9a7744b81ae071610fa09a305009b3b3da763 /run-tests | |
parent | 688212130d7098cbc8079ea9f333fda8dfaf8f9f (diff) | |
download | ale-fca77266bde1ed48b20ec37bab81d05f826e1e6c.zip |
Complain about badly aligned documentation on Travis CI, and fix some existing problems
Diffstat (limited to 'run-tests')
-rwxr-xr-x | run-tests | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -243,6 +243,18 @@ if ((run_custom_checks)); then echo ./check-supported-tools-tables || EXIT=$? + + echo '========================================' + echo 'Look for badly aligned doc tags' + echo '========================================' + echo 'Badly aligned tags follow:' + echo + + # Documentation tags need to be aligned to the right margin, so look for + # tags which aren't at the right margin. + grep ' \*[^*]\+\*$' doc/ -r \ + | awk '{ sep = index($0, ":"); if (length(substr($0, sep + 1 )) < 79) { print } }' \ + | grep . && EXIT=1 fi exit $EXIT |