Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnumNamesLowerSnakeCaseRule ¶
type EnumNamesLowerSnakeCaseRule struct{}
EnumNamesLowerSnakeCaseRule verifies that all enum names are LowerSnakeCase.
func NewEnumNamesLowerSnakeCaseRule ¶
func NewEnumNamesLowerSnakeCaseRule() EnumNamesLowerSnakeCaseRule
NewEnumNamesLowerSnakeCaseRule creates a new EnumNamesLowerSnakeCaseRule.
func (EnumNamesLowerSnakeCaseRule) ID ¶
func (r EnumNamesLowerSnakeCaseRule) ID() string
ID returns the ID of this rule.
func (EnumNamesLowerSnakeCaseRule) IsOfficial ¶
func (r EnumNamesLowerSnakeCaseRule) IsOfficial() bool
IsOfficial decides whether or not this rule belongs to the official guide.
func (EnumNamesLowerSnakeCaseRule) Purpose ¶
func (r EnumNamesLowerSnakeCaseRule) Purpose() string
Purpose returns the purpose of this rule.
type SimpleRule ¶
type SimpleRule struct {
// contains filtered or unexported fields
}
SimpleRule verifies that all enum names are LowerSnakeCase.
func NewSimpleRule ¶
func NewSimpleRule( verbose bool, fixMode bool, ) SimpleRule
NewSimpleRule creates a new SimpleRule.
func (SimpleRule) IsOfficial ¶
func (r SimpleRule) IsOfficial() bool
IsOfficial decides whether or not this rule belongs to the official guide.
func (SimpleRule) Purpose ¶
func (r SimpleRule) Purpose() string
Purpose returns the purpose of this rule.
Click to show internal directories.
Click to hide internal directories.