fix(parser/clangtidy): skip empty category
This commit is contained in:
parent
e2adcda10d
commit
419da6c19b
|
@ -1 +1 @@
|
||||||
Subproject commit a3e3c533c8f986168a6b1a8621ce4034fd4eda04
|
Subproject commit 13fe8890f87cd68125c48c19e1f9d4a21bc21383
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user