Skip to content

Commit 1103d01

Browse files
authored
Merge pull request #10584 from cabalism/make/lint-rules
Add PHONY rules for lint and lint-json
2 parents 0c3d135 + 8aecf89 commit 1103d01

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Makefile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,18 @@ whitespace: ## Run fix-whitespace in check mode
4949
fix-whitespace: ## Run fix-whitespace in fix mode
5050
fix-whitespace --verbose
5151

52+
.PHONY: lint
53+
lint: ## Run HLint
54+
hlint -j .
55+
56+
.PHONY: lint-json
57+
lint-json: ## Run HLint in JSON mode
58+
hlint -j --json -- .
59+
5260
# local checks
5361

5462
.PHONY: checks
55-
checks: whitespace style
56-
# this should probably be a rule
57-
hlint -j --json -- .
63+
checks: whitespace style lint-json
5864

5965
# source generation: SPDX
6066

0 commit comments

Comments
 (0)