check-tag-alignment
1 #!/usr/bin/env bash 2 3 exit_code=0 4 5 # Documentation tags need to be aligned to the right margin, so look for 6 # tags which aren't at the right margin. 7 grep ' \*[^*]\+\*$' doc/ -r \ 8 | awk '{ sep = index($0, ":"); if (length(substr($0, sep + 1 )) < 79) { print } }' \ 9 | grep . && exit_code=1 10 11 exit $exit_code