Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{ Name: name, Doc: "phase fields are deprecated and conditions should be preferred, avoid phase like enum fields", Run: run, Requires: []*analysis.Analyzer{inspect.Analyzer, extractjsontags.Analyzer}, }
Analyzer is the analyzer for the nophase package. It checks that no struct fields named 'phase', or that contain phase as a substring are present.
Functions ¶
func Initializer ¶
func Initializer() initializer
Initializer returns the AnalyzerInitializer for this Analyzer so that it can be added to the registry.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.