Actions
action #92146
openAutomatically validate indentation in shellscripts
Start date:
2021-05-05
Due date:
% Done:
0%
Estimated time:
Description
Motivation¶
It would be great to have automated checks for more style aspects to shellscript code such as indentation
Acceptance criteria¶
- AC1: Indentation in shellscripts is checked automatically
Acceptance tests¶
- AT1: Inconsistent indentation in shellscripts prevents deployments
Suggestions¶
- Investigate if shellcheck can verify indentation or could to be extended to add the feature
- Try shfmt https://github.com/mvdan/sh
Updated by osukup over 3 years ago
need shfmt
or another tool coding style is outside ShellCheck scope and target.
Updated by okurz over 3 years ago
- Target version set to future
sounds good. shfmt has been mentioned in the description already . https://software.opensuse.org/package/shfmt?search_term=shfmt shows that so far we only have an openSUSE package in a home repo though
Actions