Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KeyStyleDefinition ¶
type KeyStyleDefinition struct {
Style KeyStyle `json:"style"` // The style of keys in maps, e.g., "camelCase", "PascalCase", "kebab-case", "snake_case", "custom".
TypeName string `json:"type-name"` // The name of the type of map to check, e.g., "LogData"
Regex string `json:"regex"` // Optional custom regex to match keys (if Style is "custom").
}
type KeyStyleSettings ¶
type KeyStyleSettings struct {
Checks []KeyStyleDefinition `json:"checks"` // List of key style definitions to check.
}
type PluginKeyStyle ¶
type PluginKeyStyle struct {
// contains filtered or unexported fields
}
func (*PluginKeyStyle) BuildAnalyzers ¶
func (f *PluginKeyStyle) BuildAnalyzers() ([]*analysis.Analyzer, error)
func (*PluginKeyStyle) GetLoadMode ¶
func (f *PluginKeyStyle) GetLoadMode() string
Click to show internal directories.
Click to hide internal directories.