Skip to content

Commit

Permalink
Merge pull request #10584 from cabalism/make/lint-rules
Browse files Browse the repository at this point in the history
Add PHONY rules for lint and lint-json
  • Loading branch information
mergify[bot] authored Nov 24, 2024
2 parents 0c3d135 + 8aecf89 commit 1103d01
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 1103d01

Please sign in to comment.