diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..cb0cd19 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +SRCFILES = $(shell git ls-files "bin/**" "lib/**" "scripts/**") +SHFMT_BASE_FLAGS = -s -i 2 -ci + +format: + shfmt -w $(SHFMT_BASE_FLAGS) $(SRCFILES) +.PHONY: format + +format-check: + shfmt -d $(SHFMT_BASE_FLAGS) $(SRCFILES) +.PHONY: format-check + +lint: + shellcheck $(SRCFILES) +.PHONY: lint