SetMetaScope sets an optional meta scope. A meta scope is a string that is appended to the end of each check's scope providing extra context for the check.
(scope string)
| 73 | // A meta scope is a string that is appended to the end of each check's scope |
| 74 | // providing extra context for the check. |
| 75 | func (l *Linter) SetMetaScope(scope string) { |
| 76 | if scope != "" { |
| 77 | l.metaScope = "." + scope |
| 78 | } else { |
| 79 | l.metaScope = "" |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | // Lint src according to its format. |
| 84 | func (l *Linter) Lint(input []string, pat string) ([]*core.File, error) { |
no outgoing calls
no test coverage detected