feat(aa): add the Merge method to the Rule interface.
This commit is contained in:
parent
d6424cb950
commit
42ca1be858
6 changed files with 25 additions and 18 deletions
|
|
@ -96,10 +96,11 @@ func (p *Profile) Kind() Kind {
|
|||
return PROFILE
|
||||
}
|
||||
|
||||
func (p *Profile) Merge() {
|
||||
func (p *Profile) Merge(other Rule) bool {
|
||||
slices.Sort(p.Flags)
|
||||
p.Flags = slices.Compact(p.Flags)
|
||||
p.Rules = p.Rules.Merge()
|
||||
return false
|
||||
}
|
||||
|
||||
func (p *Profile) Sort() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue