Lines Matching defs:rule
427 type rule struct { struct
429 reason string
431 paths []string
432 unlessPaths []string
434 directDeps map[string]bool
436 osClasses []OsClass
438 moduleTypes []string
439 unlessModuleTypes []string
441 props ruleProperties
442 unlessProps ruleProperties
444 onlyBootclasspathJar bool
453 func (r *rule) In(path ...string) Rule {
459 func (r *rule) NotIn(path ...string) Rule {
465 func (r *rule) InDirectDeps(deps ...string) Rule {
473 func (r *rule) WithOsClass(osClasses ...OsClass) Rule {
479 func (r *rule) ModuleType(types ...string) Rule {
485 func (r *rule) NotModuleType(types ...string) Rule {
491 func (r *rule) With(properties, value string) Rule {
496 func (r *rule) WithMatcher(properties string, matcher ValueMatcher) Rule {
505 func (r *rule) Without(properties, value string) Rule {
510 func (r *rule) WithoutMatcher(properties string, matcher ValueMatcher) Rule {
526 func (r *rule) Because(reason string) Rule {
531 func (r *rule) String() string {
566 func (r *rule) appliesToPath(dir string) bool {
572 func (r *rule) appliesToDirectDeps(ctx BottomUpMutatorContext) bool {
588 func (r *rule) appliesToOsClass(osClass OsClass) bool {
602 func (r *rule) appliesToModuleType(moduleType string) bool {
606 func (r *rule) appliesToProperties(properties []interface{}) bool {