Documentation
¶
Overview ¶
Package forbiddentext implements MDS056, which flags paragraphs whose plain text contains any configured substring.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rule ¶
type Rule struct {
Contains []string
}
Rule flags paragraphs whose plain text contains one of the configured substrings. Each match emits a diagnostic at the paragraph's start line so the per-scope override in plan 146 keeps only diagnostics that fall inside the configured section's line range.
func (*Rule) ApplySettings ¶
ApplySettings implements rule.Configurable.
func (*Rule) Check ¶
func (r *Rule) Check(f *lint.File) []lint.Diagnostic
Check implements rule.Rule.
func (*Rule) DefaultSettings ¶
DefaultSettings implements rule.Configurable.
func (*Rule) EnabledByDefault ¶
EnabledByDefault implements rule.Defaultable.
Click to show internal directories.
Click to hide internal directories.