Skip to content

Can I get golangci-lint to use a local version of gosec? #3786

Closed Answered by ldez
amyango asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

golangci-lint doesn't use binaries: the linters are imported as a lib.

So you cannot use a local version of gosec.

But you can build your own version of golangci-lint locally and then update the go.mod accordingly.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by amyango
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants