-
Hi. I'm working on a linter to ginkgo and gomega (the popular testing package and its matchers packege). The code is here: https://github.com/nunnatsa/ginkgolinter The linter enforces standards of using ginkgo and gomega. Right now it only warns for asserting I also integrated this new linter with golangci-lint and it's working (locally). My question is: would you accept a linter for non-pure golang, but for packages, like ginkgo & gomega? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 17 replies
-
Hi,
The question is not precisely that, it's more related to dependencies: more dependencies imply more problems. You can also create a plugin https://golangci-lint.run/contributing/new-linters/#how-to-add-a-private-linter-to-golangci-lint |
Beta Was this translation helpful? Give feedback.
-
This is to solve a similar problem in the linter unit tests. This is the only way I found to run the tests. However, the vendor directory is not part of the package code and does not affect the package users. It's only used for unit tests. |
Beta Was this translation helpful? Give feedback.
-
@nunnatsa Good news, I found a solution: #3124
|
Beta Was this translation helpful? Give feedback.
@nunnatsa Good news, I found a solution: #3124