Call the reusable quality-check workflow of TirSystem/github-action for the shell files: shellcheck and shfmt -d. Add switch_case_indent to the [*.sh] section of .editorconfig so that shfmt, which reads it, agrees with the style the project already uses (shfmt -i 2 -ci in tests/run-tests.sh).
13 lines
181 B
INI
13 lines
181 B
INI
root = true
|
|
|
|
[*]
|
|
indent_style = space
|
|
indent_size = 2
|
|
end_of_line = lf
|
|
insert_final_newline = true
|
|
charset = utf-8
|
|
trim_trailing_whitespace = true
|
|
|
|
[*.sh]
|
|
switch_case_indent = true
|