-
The Kubernetes API Linter is a golangci-lint module. I am a use of that linter, and think that the installation of it is too complicated. I would like to run kal via Do you have an idea how this could be possible? Related issue: kubernetes-sigs/kube-api-linter#86 (comment) |
Beta Was this translation helpful? Give feedback.
Answered by
ldez
May 15, 2025
Replies: 1 comment 1 reply
-
The linter only has to implement a package main
import (
"xxx"
"golang.org/x/tools/go/analysis/singlechecker"
)
func main() {
singlechecker.Main(xxx.Analyzer)
} or the multichecker: package main
import (
"xxx"
"yyy"
"golang.org/x/tools/go/analysis/multichecker"
)
func main() {
multichecker.Main(
xxx.Analyzer,
yyy.Analyzer,
)
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ldez
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The linter only has to implement a
main
package that calls the single checker:or the multichecker: