add check for empty description (#2015)

* add check for empty description

see https://github.com/nim-lang/packages/pull/2014

* add empty description to test if CI catches this

* add back description
This commit is contained in:
Pietro Peterlongo 2021-09-30 00:00:50 +02:00 committed by GitHub
parent e547f8ec78
commit 5c9f4a4776
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,6 +113,9 @@ proc check(): int =
elif not pdata.hasKey("description"):
echo "E: ", name, " has no description"
result.inc()
elif pdata.hasKey("description") and pdata["description"].str == "":
echo "E: ", name, " has empty description"
result.inc()
elif not pdata.hasKey("license"):
echo "E: ", name, " has no license"
result.inc()