Skip to content

Standalone Linter for KAL (Kubernetes API Linter) #5805

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

You must be logged in to vote

The linter only has to implement a main package that calls the single checker:

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,
	)
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@guettli
Comment options

Answer selected by ldez
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