We have a fair amount of shell scripts in our repositories and would benefit from uniform formatting.
shfmt is a popular choice but it's worth researching alternatives first.
Tasks
- Add a
make format-shell to format shell scripts
- Add a pre-commit hook for similar functionality, such as pre-commit-shfmt
We have a fair amount of shell scripts in our repositories and would benefit from uniform formatting.
shfmt is a popular choice but it's worth researching alternatives first.
Tasks
make format-shellto format shell scripts