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

Function checkClasses

internal/lint/ast.go:209–216  ·  view source on GitHub ↗
(attr string, ignore []string)

Source from the content-addressed store, hash-verified

207}
208
209func checkClasses(attr string, ignore []string) bool {
210 for _, class := range strings.Split(attr, " ") {
211 if core.StringInSlice(class, ignore) {
212 return true
213 }
214 }
215 return false
216}
217
218// HACK: We need to look for inserted `spans` within `tt` tags.
219//

Callers 1

lintHTMLTokensMethod · 0.85

Calls 1

StringInSliceFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…