Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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.
118
func
(s *Selector) Has(scope string) bool {
119
return
core.StringInSlice(scope, s.Sections())
120
}
Callers
2
TestSelectors
Function · 0.95
partMatches
Method · 0.80
Calls
2
Sections
Method · 0.95
StringInSlice
Function · 0.92
Tested by
1
TestSelectors
Function · 0.76