tmux-gruvbox/Makefile
Maciej Sypien 23bbbfcaee
feat: add shellcheck & shfmt github actions (#33)
* 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
2024-09-14 23:53:57 +02:00

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