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

Method Has

internal/check/scope.go:118–120  ·  view source on GitHub ↗

Has determines if s has a part equal to scope.

(scope string)

Source from the content-addressed store, hash-verified

116
117// Has determines if s has a part equal to scope.
118func (s *Selector) Has(scope string) bool {
119 return core.StringInSlice(scope, s.Sections())
120}

Callers 2

TestSelectorsFunction · 0.95
partMatchesMethod · 0.80

Calls 2

SectionsMethod · 0.95
StringInSliceFunction · 0.92

Tested by 1

TestSelectorsFunction · 0.76