Skip to content

Commit

Permalink
build: adds a Makefile with the CI commands
Browse files Browse the repository at this point in the history
  • Loading branch information
threkk committed May 8, 2022
1 parent d2c0d04 commit af29c15
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
SHFMT_BASE_FLAGS = -s -i 2 -ci
SHELLCHECK_FLAGS = -x bin/* -P lib/

fmt:
shfmt -w $(SHFMT_BASE_FLAGS) .
.PHONY: fmt

fmt-check:
shfmt -d $(SHFMT_BASE_FLAGS) .
.PHONY: fmt-check

lint:
shellcheck $(SHELLCHECK_FLAGS)
.PHONY: lint

0 comments on commit af29c15

Please sign in to comment.