d52dce2e6f
NOTE: The custom-linting-rules test fails due to the following (legit) warnings: ale_linters/clojure/clj_kondo.vim:29 Use snake_case names for linters ale_linters/elixir/elixir_ls.vim:15 Use snake_case names for linters ale_linters/go/golangci_lint.vim:54 Use snake_case names for linters ale_linters/swift/swiftformat.vim:56 Use snake_case names for linters The message wasn't getting printed because docker was explicitly only being asked to connect stdout (ignoring stderr). Unclear yet why the error code wasn't getting bubbled up.
11 lines
312 B
Bash
Executable file
11 lines
312 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
exit_code=0
|
|
|
|
# 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_code=1
|
|
|
|
exit $exit_code
|