new linter with ruleguard load error #3467
Unanswered
oscarliu2019
asked this question in
Q&A
Replies: 1 comment
-
Hi! First of all, only small set of linters are allowed to be enabled by default. Please remove golinters.NewCheckName().Name(): true, The second one, can you attach link to the linter source code or to MR in golangci-lint with your integration? Thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to add a new linter to the golangci-lint. Following the guide, i add the a linter called checkname
in the package/golinters/checkname.go, and then i add it to the manager.go
and
i also add the new linter to the .golangci.yml
however, when i build the linters and run the command
go build -o linter ./cmd/golangci-lint/main.go
and test the file
./linter run ./test
, the linter have error messageWARN [runner] Can't run linter checkname: ruleguard: load rules: both -e and -rules flags are empty
ERRO Running error: 1 error occurred:
* can't run linter checkname: ruleguard: load rules: both -e and -rules flags are empty
I wonder how to fix it, thankyou
Beta Was this translation helpful? Give feedback.
All reactions