scripts: block new BadWhitespaceCharacter findings

Gentoo CI's pkgcheck2html.conf.json rates BadWhitespaceCharacter "err",
while pkgcheck rates it warning, so a pull request could add a
non-breaking or full-width space to an ebuild and pass the report job.
The keyword now joins GENTOO_CI_ERRORS.

UnknownLicenses and MovedPackageUpdate, which Gentoo CI also rates
"err", stay out: they come from the repository-level LicenseGroupsCheck
and PackageUpdatesCheck, which the package scan of the report job never
runs.

Signed-off-by: Zakk <zakk@gentoozh.org>
This commit is contained in:
Zakk committed 2026-10-22 21:02:32 +11:00
1 parent eb861dadff
commit 309a06815a
1 file changed
+7 -1
+7 -1
View File
@@ -23,7 +23,13 @@ import sys
from pkgcheck.reporters import JsonStream
LEVELS = ("error", "warning", "style", "info")
GENTOO_CI_ERRORS = {"BadKeywords", "MissingLicenseRestricts", "UnknownManifest", "VisibleVcsPkg"}
GENTOO_CI_ERRORS = {
"BadKeywords",
"BadWhitespaceCharacter",
"MissingLicenseRestricts",
"UnknownManifest",
"VisibleVcsPkg",
}
LINE_NUMBERS = re.compile(r"\blines?:? \d+(?:, \d+)*")