12 lines
385 B
Makefile
12 lines
385 B
Makefile
.PHONY: lint_shellcheck
|
|
lint_shellcheck:
|
|
find . -type f -not -path "./uncommited/*" -a \( -iname "*.sh" -o -iname "*.tmux" \) | \
|
|
xargs -I % sh -c 'shellcheck %'
|
|
|
|
.PHONY: lint_shfmt
|
|
lint_shfmt:
|
|
find . -type f -not -path "./uncommited/*" -a \( -iname "*.sh" -o -iname "*.tmux" \) | \
|
|
xargs -I % sh -c 'shfmt -l -d %'
|
|
|
|
.PHONY: check_scripts
|
|
check_scripts: lint_shellcheck lint_shfmt
|