
* refactor: separate lint shfmt and shellcheck * feat: add simple github action task * fix: linting bash files according to shfmt * feat: move main method dedicated shell file * feat: update changelog entry
12 lines
361 B
Makefile
12 lines
361 B
Makefile
.PHONY: lint_shellcheck
|
|
lint_shellcheck:
|
|
find . -type f -not -path "./uncommited/*" -a \( -iname "*.sh" \) | \
|
|
xargs -I % sh -c 'shellcheck %'
|
|
|
|
.PHONY: lint_shfmt
|
|
lint_shfmt:
|
|
find . -type f -not -path "./uncommited/*" -a \( -iname "*.sh" \) | \
|
|
xargs -I % sh -c 'shfmt -i=2 -l -d -ln=bash %'
|
|
|
|
.PHONY: check_scripts
|
|
check_scripts: lint_shellcheck lint_shfmt
|