fix(parser/clangtidy): skip empty category
Some checks failed
build / trigger-build-image (push) Blocked by required conditions
build / build (push) Has been cancelled
submodules sync / sync (push) Has been cancelled

This commit is contained in:
张泊明518370910136 2024-11-01 05:36:53 -04:00
parent e2adcda10d
commit 419da6c19b
GPG Key ID: D47306D7062CDA9D
2 changed files with 5 additions and 1 deletions

@ -1 +1 @@
Subproject commit a3e3c533c8f986168a6b1a8621ce4034fd4eda04 Subproject commit 13fe8890f87cd68125c48c19e1f9d4a21bc21383

View File

@ -25,6 +25,10 @@ func GetResult(jsonMessages []JsonMessage, conf Conf) (int, string) {
parts := strings.Split(checkName, "-") parts := strings.Split(checkName, "-")
if len(parts) > 0 { if len(parts) > 0 {
category := parts[0] category := parts[0]
// checkName might be: -warnings-as-errors
if category == "" {
continue
}
categoryCount[category] += 1 categoryCount[category] += 1
} }
} }