initial commit: ifinit and boolnames

This commit is contained in:
2026-10-14 13:03:05 -07:00
commit 7c906f525a
20 changed files with 1110 additions and 0 deletions

24
ifinit/plugin.go Normal file
View File

@@ -0,0 +1,24 @@
package ifinit
import (
"github.com/golangci/plugin-module-register/register"
"golang.org/x/tools/go/analysis"
)
func init() {
register.Plugin("ifinit", New)
}
type plugin struct{}
func New(any) (register.LinterPlugin, error) {
return &plugin{}, nil
}
func (p *plugin) BuildAnalyzers() ([]*analysis.Analyzer, error) {
return []*analysis.Analyzer{Analyzer}, nil
}
func (p *plugin) GetLoadMode() string {
return register.LoadModeTypesInfo
}