From 3c50f5552e8e539f9d37937fbd2c63fbe3a5fb17 Mon Sep 17 00:00:00 2001 From: Patitotective Date: Tue, 18 Oct 2022 22:59:30 -0500 Subject: [PATCH] Empty tags now count as errors + removed empty tags from the packages list (#2390) * Check for empty tags * - Added the `-d:dontFetchRepos` flag - Made empty tags an error - Created `config.nims` - Removed empty tags from `packages.json` * Revert "- Added the `-d:dontFetchRepos` flag" This reverts commit 2b653ebcf0b242887e08b95492f2cc1b2bed3a19. * - Made empty tags an error - Removed empty tags from `packages.json` --- package_scanner.nim | 3 ++- packages.json | 15 +++++---------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/package_scanner.nim b/package_scanner.nim index fccf531..3953d8e 100644 --- a/package_scanner.nim +++ b/package_scanner.nim @@ -174,7 +174,8 @@ proc check(): int = inc emptyTags if emptyTags > 0: - echo "W: ", name, " has ", emptyTags, " empty tags" + echo "E: ", name, " has ", emptyTags, " empty tags" + inc result if name.normalize notin names: names.incl name.normalize diff --git a/packages.json b/packages.json index 494da00..3f2d20a 100644 --- a/packages.json +++ b/packages.json @@ -21824,8 +21824,7 @@ "tags": [ "library", "wrapper", - "parser", - "" + "parser" ], "description": "Nim wrappers for tree-sitter parser grammars", "license": "Apache-2.0", @@ -22149,8 +22148,7 @@ "library", "language", "syllable", - "syllables", - "" + "syllables" ], "description": "Syllable estimation for Nim.", "license": "MIT", @@ -24338,8 +24336,7 @@ "tags": [ "draw", "drawing", - "gamedev", - "" + "gamedev" ], "description": "Simple library to draw stuff on a window", "license": "MIT", @@ -24637,8 +24634,7 @@ "url": "https://github.com/SciNim/scinim", "method": "git", "tags": [ - "scinim", - "" + "scinim" ], "description": "The core types and functions of the SciNim ecosystem", "license": "MIT", @@ -26312,8 +26308,7 @@ "tmpfs", "ramdisk", "tempfile", - "linux", - "" + "linux" ], "description": "Create and remove ramdisks easily", "license": "MPL-2.0",