Documentation
¶
Overview ¶
Package rule contains lint rules
Index ¶
- type BodyMaxLenRule
- type BodyMaxLineLenRule
- type BodyMinLenRule
- type DescriptionMaxLenRule
- type DescriptionMinLenRule
- type FooterEnumRule
- type FooterMaxLenRule
- type FooterMaxLineLenRule
- type FooterMinLenRule
- type FooterTypeEnumParam
- type FooterTypeEnumRule
- type HeadMaxLenRule
- type HeadMinLenRule
- type ScopeCharsetRule
- type ScopeEnumRule
- type ScopeMaxLenRule
- type ScopeMinLenRule
- type TypeCharsetRule
- type TypeEnumRule
- type TypeMaxLenRule
- type TypeMinLenRule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BodyMaxLenRule ¶
type BodyMaxLenRule struct {
CheckLen int
}
BodyMaxLenRule to validate max length of body
func (*BodyMaxLenRule) Apply ¶ added in v0.4.0
func (r *BodyMaxLenRule) Apply(setting lint.RuleSetting) error
Apply sets the needed argument for the rule
type BodyMaxLineLenRule ¶
type BodyMaxLineLenRule struct {
CheckLen int
}
BodyMaxLineLenRule to validate max line length of body
func (*BodyMaxLineLenRule) Apply ¶ added in v0.4.0
func (r *BodyMaxLineLenRule) Apply(setting lint.RuleSetting) error
Apply sets the needed argument for the rule
func (*BodyMaxLineLenRule) Name ¶
func (r *BodyMaxLineLenRule) Name() string
Name return name of the rule
type BodyMinLenRule ¶
type BodyMinLenRule struct {
CheckLen int
}
BodyMinLenRule to validate min length of body
func (*BodyMinLenRule) Apply ¶ added in v0.4.0
func (r *BodyMinLenRule) Apply(setting lint.RuleSetting) error
Apply sets the needed argument for the rule
type DescriptionMaxLenRule ¶
type DescriptionMaxLenRule struct {
CheckLen int
}
DescriptionMaxLenRule to validate max length of type
func (*DescriptionMaxLenRule) Apply ¶ added in v0.4.0
func (r *DescriptionMaxLenRule) Apply(setting lint.RuleSetting) error
Apply sets the needed argument for the rule
func (*DescriptionMaxLenRule) Name ¶
func (r *DescriptionMaxLenRule) Name() string
Name return name of the rule
type DescriptionMinLenRule ¶
type DescriptionMinLenRule struct {
CheckLen int
}
DescriptionMinLenRule to validate min length of description
func (*DescriptionMinLenRule) Apply ¶ added in v0.4.0
func (r *DescriptionMinLenRule) Apply(setting lint.RuleSetting) error
Apply sets the needed argument for the rule
func (*DescriptionMinLenRule) Name ¶
func (r *DescriptionMinLenRule) Name() string
Name return name of the rule
type FooterEnumRule ¶ added in v0.8.0
type FooterEnumRule struct {
}FooterEnumRule to validate footer tokens
func (*FooterEnumRule) Apply ¶ added in v0.8.0
func (r *FooterEnumRule) Apply(setting lint.RuleSetting) error
Apply sets the needed argument for the rule
func (*FooterEnumRule) Name ¶ added in v0.8.0
func (r *FooterEnumRule) Name() string
Name return name of the rule
type FooterMaxLenRule ¶
type FooterMaxLenRule struct {
}FooterMaxLenRule to validate max length of footer
func (*FooterMaxLenRule) Apply ¶ added in v0.4.0
func (r *FooterMaxLenRule) Apply(setting lint.RuleSetting) error
Apply sets the needed argument for the rule
func (*FooterMaxLenRule) Name ¶
func (r *FooterMaxLenRule) Name() string
Name return name of the rule
type FooterMaxLineLenRule ¶
type FooterMaxLineLenRule struct {
}FooterMaxLineLenRule to validate max line length of footer
func (*FooterMaxLineLenRule) Apply ¶ added in v0.4.0
func (r *FooterMaxLineLenRule) Apply(setting lint.RuleSetting) error
Apply sets the needed argument for the rule
func (*FooterMaxLineLenRule) Name ¶
func (r *FooterMaxLineLenRule) Name() string
Name return name of the rule
type FooterMinLenRule ¶
type FooterMinLenRule struct {
}FooterMinLenRule to validate min length of footer
func (*FooterMinLenRule) Apply ¶ added in v0.4.0
func (r *FooterMinLenRule) Apply(setting lint.RuleSetting) error
Apply sets the needed argument for the rule
func (*FooterMinLenRule) Name ¶
func (r *FooterMinLenRule) Name() string
Name return name of the rule
type FooterTypeEnumParam ¶ added in v0.9.0
type FooterTypeEnumParam struct {}
FooterTypeEnumParam represent a single footer type param
type FooterTypeEnumRule ¶ added in v0.9.0
type FooterTypeEnumRule struct {
}FooterTypeEnumRule to validate footer tokens
func (*FooterTypeEnumRule) Apply ¶ added in v0.9.0
func (r *FooterTypeEnumRule) Apply(setting lint.RuleSetting) error
Apply sets the needed argument for the rule
func (*FooterTypeEnumRule) Name ¶ added in v0.9.0
func (r *FooterTypeEnumRule) Name() string
Name return name of the rule
type HeadMaxLenRule ¶
type HeadMaxLenRule struct {
CheckLen int
}
HeadMaxLenRule to validate max length of header
func (*HeadMaxLenRule) Apply ¶ added in v0.4.0
func (r *HeadMaxLenRule) Apply(setting lint.RuleSetting) error
Apply sets the needed argument for the rule
type HeadMinLenRule ¶
type HeadMinLenRule struct {
CheckLen int
}
HeadMinLenRule to validate min length of header
func (*HeadMinLenRule) Apply ¶ added in v0.4.0
func (r *HeadMinLenRule) Apply(setting lint.RuleSetting) error
Apply sets the needed argument for the rule
type ScopeCharsetRule ¶
type ScopeCharsetRule struct {
Charset string
}
ScopeCharsetRule to validate max length of header
func (*ScopeCharsetRule) Apply ¶ added in v0.4.0
func (r *ScopeCharsetRule) Apply(setting lint.RuleSetting) error
Apply sets the needed argument for the rule
func (*ScopeCharsetRule) Name ¶
func (r *ScopeCharsetRule) Name() string
Name return name of the rule
type ScopeEnumRule ¶
ScopeEnumRule to validate max length of header
func (*ScopeEnumRule) Apply ¶ added in v0.4.0
func (r *ScopeEnumRule) Apply(setting lint.RuleSetting) error
Apply sets the needed argument for the rule
type ScopeMaxLenRule ¶
type ScopeMaxLenRule struct {
CheckLen int
}
ScopeMaxLenRule to validate max length of type
func (*ScopeMaxLenRule) Apply ¶ added in v0.4.0
func (r *ScopeMaxLenRule) Apply(setting lint.RuleSetting) error
Apply sets the needed argument for the rule
type ScopeMinLenRule ¶
type ScopeMinLenRule struct {
CheckLen int
}
ScopeMinLenRule to validate min length of scope
func (*ScopeMinLenRule) Apply ¶ added in v0.4.0
func (r *ScopeMinLenRule) Apply(setting lint.RuleSetting) error
Apply sets the needed argument for the rule
type TypeCharsetRule ¶
type TypeCharsetRule struct {
Charset string
}
TypeCharsetRule to validate max length of header
func (*TypeCharsetRule) Apply ¶ added in v0.4.0
func (r *TypeCharsetRule) Apply(setting lint.RuleSetting) error
Apply sets the needed argument for the rule
type TypeEnumRule ¶
type TypeEnumRule struct {
Types []string
}
TypeEnumRule to validate types
func (*TypeEnumRule) Apply ¶ added in v0.4.0
func (r *TypeEnumRule) Apply(setting lint.RuleSetting) error
Apply sets the needed argument for the rule
type TypeMaxLenRule ¶
type TypeMaxLenRule struct {
CheckLen int
}
TypeMaxLenRule to validate max length of type
func (*TypeMaxLenRule) Apply ¶ added in v0.4.0
func (r *TypeMaxLenRule) Apply(setting lint.RuleSetting) error
Apply sets the needed argument for the rule
type TypeMinLenRule ¶
type TypeMinLenRule struct {
CheckLen int
}
TypeMinLenRule to validate min length of type
func (*TypeMinLenRule) Apply ¶ added in v0.4.0
func (r *TypeMinLenRule) Apply(setting lint.RuleSetting) error
Apply sets the needed argument for the rule
Source Files
¶
- body_max_length.go
- body_max_line_length.go
- body_min_length.go
- desc_max_length.go
- desc_min_length.go
- footer_enum.go
- footer_max_length.go
- footer_max_line_length.go
- footer_min_length.go
- footer_type_enum.go
- header_max_length.go
- header_min_length.go
- rule.go
- scope_charset.go
- scope_enum.go
- scope_max_length.go
- scope_min_length.go
- type_charset.go
- type_enum.go
- type_max_length.go
- type_min_length.go