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

Method Contains

internal/check/scope.go:89–91  ·  view source on GitHub ↗

Contains determines if all if sel's sections are in s.

(sel Selector)

Source from the content-addressed store, hash-verified

87
88// Contains determines if all if sel's sections are in s.
89func (s *Selector) Contains(sel Selector) bool {
90 return core.AllStringsInSlice(sel.Sections(), s.Sections())
91}
92
93// ContainsString determines if all if sel's sections are in s.
94func (s *Selector) ContainsString(scope []string) bool {

Callers 15

ContainsStringMethod · 0.95
TestSymlinkFixtureFunction · 0.80
lintScopedValuesMethod · 0.80
findBestLineBySubstringFunction · 0.80
findLineBySubstringFunction · 0.80
adjustPosFunction · 0.80
allStringsInStringFunction · 0.80
NewE201FromTargetFunction · 0.80
MatchMethod · 0.80
DeterminePathFunction · 0.80

Calls 2

SectionsMethod · 0.95
AllStringsInSliceFunction · 0.92

Tested by 4

TestSymlinkFixtureFunction · 0.64
TestNoPkgFoundFunction · 0.64