File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 1- // Package krtequals provides a golangci-lint plugin for checking Equals() method implementations.
1+ // Package krtequals is a golangci-lint plugin for checking Equals() method implementations.
2+ // It is built as a module to be used with golangci-lint.
3+ // See https://golangci-lint.run/plugins/module-plugins/ for more information.
24//
3- // This file exists to satisfy golangci-lint's module plugin system, which expects
4- // a package at the module root. The actual plugin registration happens in the
5- // pkg/analyzer package's init() function.
5+ // This pattern follows the same approach used by kube-api-linter (KAL):
6+ // https://github.com/kubernetes-sigs/kube-api-linter/blob/main/plugin.go
67package krtequals
78
89import (
9- // Import the analyzer package to trigger plugin registration via init().
10- _ "github.com/kgateway-dev/krtequals/pkg/analyzer"
10+ // Importing the analyzer package triggers plugin registration via init().
11+ "github.com/kgateway-dev/krtequals/pkg/analyzer"
1112)
1213
14+ // New is the entrypoint for the plugin.
15+ var New = analyzer .New
You can’t perform that action at this time.
0 commit comments