You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
623 B
25 lines
623 B
// Copyright (c) Tailscale Inc & contributors
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
// Package vet is a tool to statically check Go source code.
|
|
package main
|
|
|
|
import (
|
|
_ "embed"
|
|
|
|
"golang.org/x/tools/go/analysis/unitchecker"
|
|
"tailscale.com/cmd/vet/jsontags"
|
|
"tailscale.com/cmd/vet/subtestnames"
|
|
)
|
|
|
|
//go:embed jsontags_allowlist
|
|
var jsontagsAllowlistSource string
|
|
|
|
func init() {
|
|
jsontags.RegisterAllowlist(jsontags.ParseAllowlist(jsontagsAllowlistSource))
|
|
jsontags.RegisterPureIsZeroMethods(jsontags.PureIsZeroMethodsInTailscaleModule)
|
|
}
|
|
|
|
func main() {
|
|
unitchecker.Main(jsontags.Analyzer, subtestnames.Analyzer)
|
|
}
|
|
|