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

Function updateQueries

internal/lint/code.go:16–29  ·  view source on GitHub ↗
(f *core.File, views map[string]*core.View)

Source from the content-addressed store, hash-verified

14)
15
16func updateQueries(f *core.File, views map[string]*core.View) ([]core.Scope, error) {
17 var found []core.Scope
18
19 for syntax, view := range views {
20 sec, err := glob.Compile(syntax)
21 if err != nil {
22 return nil, err
23 } else if sec.Match(f.Path) {
24 found = view.Scopes
25 }
26 }
27
28 return found, nil
29}
30
31func (l *Linter) lintCode(f *core.File) error {
32 lang, err := code.GetLanguageFromExt(f.RealExt)

Callers 2

lintCodeMethod · 0.85
lintFragmentsMethod · 0.85

Calls 2

CompileFunction · 0.92
MatchMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…