Skip to content

Commit

Permalink
Add PHONY rules for lint and lint-json
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Nov 22, 2024
1 parent c3a9dd7 commit f4ff3d7
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,18 @@ whitespace: ## Run fix-whitespace in check mode
fix-whitespace: ## Run fix-whitespace in fix mode
fix-whitespace --verbose

.PHONY: lint
lint: ## Run HLint
hlint -j .

.PHONY: lint-json
lint-json: ## Run HLint in JSON mode
hlint -j --json -- .

# local checks

.PHONY: checks
checks: whitespace style
# this should probably be a rule
hlint -j --json -- .
checks: whitespace style lint-json

# source generation: SPDX

Expand Down

0 comments on commit f4ff3d7

Please sign in to comment.