refractor(aa): ensure methods order in rules definitions.
This commit is contained in:
parent
272072d2a5
commit
880f0ef37e
19 changed files with 310 additions and 310 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue