mirror of
https://github.com/logos-messaging/packages.git
synced 2026-01-05 23:53:08 +00:00
Check for empty tags (#2385)
This commit is contained in:
parent
2baaac6094
commit
9db5e76d0f
@ -7,6 +7,7 @@
|
|||||||
# * Missing/unknown method
|
# * Missing/unknown method
|
||||||
# * Missing/unreachable repository
|
# * Missing/unreachable repository
|
||||||
# * Missing tags
|
# * Missing tags
|
||||||
|
# * Empty tags
|
||||||
# * Missing description
|
# * Missing description
|
||||||
# * Missing/unknown license
|
# * Missing/unknown license
|
||||||
# * Insecure git:// url on GitHub
|
# * Insecure git:// url on GitHub
|
||||||
@ -166,6 +167,14 @@ proc check(): int =
|
|||||||
inc result
|
inc result
|
||||||
elif pkg.hasKey("web") and not canFetchNimbleRepository(name, pkg["web"]):
|
elif pkg.hasKey("web") and not canFetchNimbleRepository(name, pkg["web"]):
|
||||||
echo "W: Failed to fetch source code repo for ", name
|
echo "W: Failed to fetch source code repo for ", name
|
||||||
|
elif pkg.hasKey("tags"):
|
||||||
|
var emptyTags = 0
|
||||||
|
for tag in pkg["tags"]:
|
||||||
|
if tag.getStr.len == 0:
|
||||||
|
inc emptyTags
|
||||||
|
|
||||||
|
if emptyTags > 0:
|
||||||
|
echo "W: ", name, " has ", emptyTags, " empty tags"
|
||||||
|
|
||||||
if name.normalize notin names:
|
if name.normalize notin names:
|
||||||
names.incl name.normalize
|
names.incl name.normalize
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user