aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/subsystem/linux/maintainers.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-03-29 10:49:17 +0200
committerAleksandr Nogikh <wp32pw@gmail.com>2023-03-29 11:23:53 +0200
commitf325deb023e4e2fb9197004be1b3da738680429c (patch)
tree6b9e23b5f1c0afdeb72e4112d430017e19d113c0 /pkg/subsystem/linux/maintainers.go
parentc01f77498598ff3d147830906c4ca42e3fb1b8ff (diff)
pkg/subsystem: recognize more maintainers
Earlier we only took maintainers if there was just one MAINTAINERS record, but that was a very severe limitation. Let's try a more elaborate approach. It's also not perfect, but allows us to extract many more maintainers, while keeping false positives at zero. Group raw MAINTAINER records by their T: entries. If there's just one set of T: values per group mailing list, take the intersection of M: entries from there.
Diffstat (limited to 'pkg/subsystem/linux/maintainers.go')
-rw-r--r--pkg/subsystem/linux/maintainers.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/subsystem/linux/maintainers.go b/pkg/subsystem/linux/maintainers.go
index 2f4d63003..90ca79bef 100644
--- a/pkg/subsystem/linux/maintainers.go
+++ b/pkg/subsystem/linux/maintainers.go
@@ -24,6 +24,7 @@ type maintainersRecord struct {
regexps []string
lists []string
maintainers []string
+ trees []string
}
func parseLinuxMaintainers(content io.Reader) ([]*maintainersRecord, error) {
@@ -128,6 +129,8 @@ func applyProperty(record *maintainersRecord, property *recordProperty) error {
return err
}
record.lists = append(record.lists, value)
+ case "T":
+ record.trees = append(record.trees, property.value)
}
return nil
}