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

Method SetMetaScope

internal/lint/lint.go:75–81  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
75func (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.
84func (l *Linter) Lint(input []string, pat string) ([]*core.File, error) {

Callers 3

lintCodeMethod · 0.95
lintFragmentsMethod · 0.95
lintScopedValuesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected