Skip to content

Commit fd97e6d

Browse files
committed
[CI] Add support for specifying lint path
1 parent 9d84237 commit fd97e6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,12 +251,12 @@ tools/custom-gcl: tools/structwrite .custom-gcl.yml
251251
.PHONY: lint
252252
lint: tidy tools/custom-gcl
253253
# revive -config revive.toml -exclude storage/ledger/trie ./...
254-
./tools/custom-gcl run -v ./...
254+
./tools/custom-gcl run -v $(or $(LINT_PATH),./...)
255255

256256
.PHONY: fix-lint
257257
fix-lint:
258258
# revive -config revive.toml -exclude storage/ledger/trie ./...
259-
./tools/custom-gcl run -v --fix ./...
259+
./tools/custom-gcl run -v --fix $(or $(LINT_PATH),./...)
260260

261261
# Runs unit tests with different list of packages as passed by CI so they run in parallel
262262
.PHONY: ci

0 commit comments

Comments
 (0)