(f *core.File)
| 171 | } |
| 172 | |
| 173 | func (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 | |
| 192 | func (l *Linter) lintTags(f *core.File, state *walker, tok html.Token) error { |
| 193 | ignored := core.StringInSlice("alt", l.Manager.Config.SkippedScopes) |
no test coverage detected