Skip to content

Commit

Permalink
Add fmt/lint for trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
cartermckinnon committed Oct 18, 2023
1 parent 14fb76d commit 39c34e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ endif
.PHONY: fmt
fmt: ## Format the source files
$(SHFMT_COMMAND) $(SHFMT_FLAGS) --write $(MAKEFILE_DIR)
hack/fmt-trailing-spaces.sh

SHELLCHECK_COMMAND := $(shell which shellcheck)
ifeq (, $(SHELLCHECK_COMMAND))
Expand All @@ -96,6 +97,7 @@ transform-al2-to-al2023:
lint: lint-docs ## Check the source files for syntax and format issues
$(SHFMT_COMMAND) $(SHFMT_FLAGS) --diff $(MAKEFILE_DIR)
$(SHELLCHECK_COMMAND) --format gcc --severity error $(SHELL_FILES)
hack/lint-trailing-spaces.sh

.PHONY: test
test: ## run the test-harness
Expand Down

0 comments on commit 39c34e3

Please sign in to comment.