mirror of
https://github.com/jlengrand/asdf-php.git
synced 2026-03-10 08:01:22 +00:00
2
.github/workflows/workflow.yml
vendored
2
.github/workflows/workflow.yml
vendored
@@ -68,4 +68,4 @@ jobs:
|
||||
run: brew install shfmt
|
||||
|
||||
- name: Run shfmt
|
||||
run: shfmt -d -i 2 -ci .
|
||||
run: make fmt-check
|
||||
|
||||
14
Makefile
Normal file
14
Makefile
Normal file
@@ -0,0 +1,14 @@
|
||||
SH_SRCFILES = $(shell git ls-files "bin/*")
|
||||
SHFMT_BASE_FLAGS = -s -i 2 -ci
|
||||
|
||||
fmt:
|
||||
shfmt -w $(SHFMT_BASE_FLAGS) $(SH_SRCFILES)
|
||||
.PHONY: fmt
|
||||
|
||||
fmt-check:
|
||||
shfmt -d $(SHFMT_BASE_FLAGS) $(SH_SRCFILES)
|
||||
.PHONY: fmt-check
|
||||
|
||||
lint:
|
||||
shellcheck $(SH_SRCFILES)
|
||||
.PHONY: lint
|
||||
Reference in New Issue
Block a user