(f *core.File, views map[string]*core.View)
| 14 | ) |
| 15 | |
| 16 | func 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 | |
| 31 | func (l *Linter) lintCode(f *core.File) error { |
| 32 | lang, err := code.GetLanguageFromExt(f.RealExt) |
no test coverage detected
searching dependent graphs…