Lines Matching defs:string
270 func (m *equalMatcher) Test(value string) bool {
281 func (m *anyMatcher) Test(value string) bool {
295 func (m *startsWithMatcher) Test(value string) bool {
307 func (m *regexMatcher) Test(value string) bool {
319 func (m *notInListMatcher) Test(value string) bool {
329 func (m *isSetMatcher) Test(value string) bool {
396 func (r *rule) In(path ...string) Rule {
401 func (r *rule) NotIn(path ...string) Rule {
406 func (r *rule) InDirectDeps(deps ...string) Rule {
418 func (r *rule) ModuleType(types ...string) Rule {
423 func (r *rule) NotModuleType(types ...string) Rule {
428 func (r *rule) With(properties, value string) Rule {
432 func (r *rule) WithMatcher(properties string, matcher ValueMatcher) Rule {
440 func (r *rule) Without(properties, value string) Rule {
444 func (r *rule) WithoutMatcher(properties string, matcher ValueMatcher) Rule {
452 func selectMatcher(expected string) ValueMatcher {
459 func (r *rule) Because(reason string) Rule {
504 func (r *rule) appliesToPath(dir string) bool {
548 func (r *rule) appliesToModuleType(moduleType string) bool {
558 func StartsWith(prefix string) ValueMatcher {
562 func Regexp(re string) ValueMatcher {
570 func NotInList(allowed []string) ValueMatcher {
576 func cleanPaths(paths []string) []string {
584 func fieldNamesForProperties(propertyNames string) []string {