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
|
|
@ -47,6 +47,18 @@ func newPtraceFromLog(log map[string]string) Rule {
|
|||
}
|
||||
}
|
||||
|
||||
func (r *Ptrace) Kind() Kind {
|
||||
return PTRACE
|
||||
}
|
||||
|
||||
func (r *Ptrace) Constraint() constraint {
|
||||
return blockKind
|
||||
}
|
||||
|
||||
func (r *Ptrace) String() string {
|
||||
return renderTemplate(r.Kind(), r)
|
||||
}
|
||||
|
||||
func (r *Ptrace) Validate() error {
|
||||
if err := validateValues(r.Kind(), "access", r.Access); err != nil {
|
||||
return fmt.Errorf("%s: %w", r, err)
|
||||
|
|
@ -78,15 +90,3 @@ func (r *Ptrace) Compare(other Rule) int {
|
|||
}
|
||||
return r.Qualifier.Compare(o.Qualifier)
|
||||
}
|
||||
|
||||
func (r *Ptrace) String() string {
|
||||
return renderTemplate(r.Kind(), r)
|
||||
}
|
||||
|
||||
func (r *Ptrace) Constraint() constraint {
|
||||
return blockKind
|
||||
}
|
||||
|
||||
func (r *Ptrace) Kind() Kind {
|
||||
return PTRACE
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue