MCPcopy Create free account
hub / github.com/vale-cli/vale / lintSizedScopes

Method lintSizedScopes

internal/lint/ast.go:173–190  ·  view source on GitHub ↗
(f *core.File)

Source from the content-addressed store, hash-verified

171}
172
173func (l *Linter) lintSizedScopes(f *core.File) error {
174 f.ResetComments()
175
176 // Run all rules with `scope: summary`
177 //
178 // TODO: is this the most efficient place to assign tagging?
179 summary := nlp.NewLinedBlock(f.Content, f.Summary.String(),
180 "summary"+f.RealExt, 0)
181
182 for _, blk := range []nlp.Block{summary} {
183 err := l.lintBlock(f, blk, len(f.Lines), 0, true)
184 if err != nil {
185 return err
186 }
187 }
188
189 return nil
190}
191
192func (l *Linter) lintTags(f *core.File, state *walker, tok html.Token) error {
193 ignored := core.StringInSlice("alt", l.Manager.Config.SkippedScopes)

Callers 1

lintHTMLTokensMethod · 0.95

Calls 4

lintBlockMethod · 0.95
NewLinedBlockFunction · 0.92
ResetCommentsMethod · 0.80
StringMethod · 0.80

Tested by

no test coverage detected