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

Method ContainsString

internal/check/scope.go:94–102  ·  view source on GitHub ↗

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

(scope []string)

Source from the content-addressed store, hash-verified

92
93// ContainsString determines if all if sel's sections are in s.
94func (s *Selector) ContainsString(scope []string) bool {
95 for _, option := range scope {
96 sel := Selector{Value: []string{option}}
97 if !s.Contains(sel) {
98 return false
99 }
100 }
101 return true
102}
103
104// Equal determines if sel == s.
105func (s *Selector) Equal(sel Selector) bool {

Callers

nothing calls this directly

Calls 1

ContainsMethod · 0.95

Tested by

no test coverage detected