Documentation
¶
Index ¶
- type Rule
- func (r *Rule) ApplySettings(s map[string]any) error
- func (r *Rule) Category() string
- func (r *Rule) Check(f *lint.File) []lint.Diagnostic
- func (r *Rule) DefaultSettings() map[string]any
- func (r *Rule) Fix(f *lint.File) []byte
- func (r *Rule) GetPad() int
- func (r *Rule) GetSeparatorStyle() tablefmt.SeparatorStyle
- func (r *Rule) ID() string
- func (r *Rule) Name() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rule ¶
type Rule struct {
Pad int // spaces on each side of cell content
SeparatorStyle tablefmt.SeparatorStyle
}
Rule checks that markdown tables are formatted with consistent column widths, cell padding, and a chosen separator style.
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) GetSeparatorStyle ¶ added in v0.23.0
func (r *Rule) GetSeparatorStyle() tablefmt.SeparatorStyle
GetSeparatorStyle returns the active separator style.
Click to show internal directories.
Click to hide internal directories.