Add global Makefile for project management
This commit is contained in:
parent
00aaa0fe0c
commit
5cf8aaf7a1
|
@ -0,0 +1,16 @@
|
|||
.PHONY: setup
|
||||
|
||||
SHELL = bash
|
||||
|
||||
all: setup
|
||||
|
||||
setup:
|
||||
command -v pre-commit > /dev/null && pre-commit install
|
||||
|
||||
# https://google.github.io/styleguide/shellguide.html
|
||||
shell-format:
|
||||
shfmt -f . | xargs shfmt -i 2 -ci -sr -kp -w
|
||||
|
||||
shell-check:
|
||||
shfmt -f . | xargs shfmt -i 2 -ci -sr -kp -d
|
||||
shfmt -f . | xargs shellcheck --color=always
|
Loading…
Reference in New Issue