Documentation ¶
Index ¶
- Constants
- func HighlightRed(in string) string
- type Rule
- type RuleBaseFormVerb
- type RuleCapitalizedWord
- type RuleImperativeMood
- type RuleKnownVerb
- type RuleNoConventionalSpec
- type RuleNoFixup
- type RuleNoIssueNumber
- type RuleNoLeadingWhitespace
- type RuleNoMerge
- type RuleNoSingleWord
- type RuleNoTrailingPunct
- type RuleSuggestion
- type RuleTitleLength
Constants ¶
View Source
const (
DefaultTitleMaxLength = 72
)
Variables ¶
This section is empty.
Functions ¶
func HighlightRed ¶
Types ¶
type RuleBaseFormVerb ¶
type RuleBaseFormVerb struct { }
func (*RuleBaseFormVerb) BreakWhenInvalid ¶
func (r *RuleBaseFormVerb) BreakWhenInvalid() bool
func (*RuleBaseFormVerb) Suggestion ¶
func (r *RuleBaseFormVerb) Suggestion(rs RuleSuggestion) string
type RuleCapitalizedWord ¶
type RuleCapitalizedWord struct { }
func (*RuleCapitalizedWord) BreakWhenInvalid ¶
func (r *RuleCapitalizedWord) BreakWhenInvalid() bool
func (*RuleCapitalizedWord) Suggestion ¶
func (r *RuleCapitalizedWord) Suggestion(rs RuleSuggestion) string
type RuleImperativeMood ¶
type RuleImperativeMood struct {
Prepositions []string
}
func (*RuleImperativeMood) BreakWhenInvalid ¶
func (r *RuleImperativeMood) BreakWhenInvalid() bool
func (*RuleImperativeMood) Suggestion ¶
func (r *RuleImperativeMood) Suggestion(rs RuleSuggestion) string
type RuleKnownVerb ¶
type RuleKnownVerb struct {
KnownVerbs []string
}
func (*RuleKnownVerb) BreakWhenInvalid ¶
func (r *RuleKnownVerb) BreakWhenInvalid() bool
func (*RuleKnownVerb) Suggestion ¶
func (r *RuleKnownVerb) Suggestion(rs ruleKnownVerbSuggestion) string
type RuleNoConventionalSpec ¶
type RuleNoConventionalSpec struct { }
func (*RuleNoConventionalSpec) BreakWhenInvalid ¶
func (r *RuleNoConventionalSpec) BreakWhenInvalid() bool
func (*RuleNoConventionalSpec) Suggestion ¶
func (r *RuleNoConventionalSpec) Suggestion(rs RuleSuggestion) string
type RuleNoFixup ¶
type RuleNoFixup struct { }
func (*RuleNoFixup) BreakWhenInvalid ¶
func (r *RuleNoFixup) BreakWhenInvalid() bool
func (*RuleNoFixup) Suggestion ¶
func (r *RuleNoFixup) Suggestion(rs RuleSuggestion) string
type RuleNoIssueNumber ¶
type RuleNoIssueNumber struct { }
func (*RuleNoIssueNumber) BreakWhenInvalid ¶
func (r *RuleNoIssueNumber) BreakWhenInvalid() bool
func (*RuleNoIssueNumber) Suggestion ¶
func (r *RuleNoIssueNumber) Suggestion(rs RuleSuggestion) string
type RuleNoLeadingWhitespace ¶
type RuleNoLeadingWhitespace struct { }
func (*RuleNoLeadingWhitespace) BreakWhenInvalid ¶
func (r *RuleNoLeadingWhitespace) BreakWhenInvalid() bool
type RuleNoMerge ¶
type RuleNoMerge struct { }
func (*RuleNoMerge) BreakWhenInvalid ¶
func (r *RuleNoMerge) BreakWhenInvalid() bool
func (*RuleNoMerge) Suggestion ¶
func (r *RuleNoMerge) Suggestion(rs RuleSuggestion) string
type RuleNoSingleWord ¶
type RuleNoSingleWord struct { }
func (*RuleNoSingleWord) BreakWhenInvalid ¶
func (r *RuleNoSingleWord) BreakWhenInvalid() bool
func (*RuleNoSingleWord) Suggestion ¶
func (r *RuleNoSingleWord) Suggestion(rs RuleSuggestion) string
type RuleNoTrailingPunct ¶
type RuleNoTrailingPunct struct { }
func (*RuleNoTrailingPunct) BreakWhenInvalid ¶
func (r *RuleNoTrailingPunct) BreakWhenInvalid() bool
func (*RuleNoTrailingPunct) Suggestion ¶
func (r *RuleNoTrailingPunct) Suggestion(rs RuleSuggestion) string
type RuleSuggestion ¶
type RuleTitleLength ¶
type RuleTitleLength struct {
MaxLength int
}
func (*RuleTitleLength) BreakWhenInvalid ¶
func (r *RuleTitleLength) BreakWhenInvalid() bool
func (*RuleTitleLength) Suggestion ¶
func (r *RuleTitleLength) Suggestion(rt lengthRule) string
Click to show internal directories.
Click to hide internal directories.