fix(docCoverage): brief description may be empty

This commit is contained in:
Julien Cabieces 2025-09-16 17:53:12 +02:00 committed by Nyall Dawson
parent 6dc8aae9d1
commit d257cb6b37

View File

@ -337,7 +337,11 @@ class DoxygenParser:
}
)
if not brief_description[0].isupper() and not brief_description[0].isnumeric():
if (
brief_description
and not brief_description[0].isupper()
and not brief_description[0].isnumeric()
):
noncompliant_members.append(
{
"Brief description": f"Brief '{brief_description}' is not sentence case, starting with a capital letter. Ensure briefs are a full sentence."