refractor(aa): ensure methods order in rules definitions.

This commit is contained in:
Alexandre Pujol 2024-06-25 19:56:36 +01:00
parent 272072d2a5
commit 880f0ef37e
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
19 changed files with 310 additions and 310 deletions

View file

@ -16,6 +16,18 @@ func newAll(q Qualifier, rule rule) (Rule, error) {
return &All{Base: newBase(rule)}, nil
}
func (r *All) Kind() Kind {
return ALL
}
func (r *All) Constraint() constraint {
return blockKind
}
func (r *All) String() string {
return renderTemplate(r.Kind(), r)
}
func (r *All) Validate() error {
return nil
}
@ -29,15 +41,3 @@ func (r *All) Merge(other Rule) bool {
b := &r.Base
return b.merge(o.Base)
}
func (r *All) String() string {
return renderTemplate(r.Kind(), r)
}
func (r *All) Constraint() constraint {
return blockKind
}
func (r *All) Kind() Kind {
return ALL
}