From a7a85a8ea3aaa5de8723d600351949fa91358c0c Mon Sep 17 00:00:00 2001 From: Robin Vobruba Date: Sun, 3 Dec 2023 17:17:20 +0100 Subject: [PATCH] Do not --list disabled checks [fix] --- src/checker.nim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/checker.nim b/src/checker.nim index 6383573..fe12109 100644 --- a/src/checker.nim +++ b/src/checker.nim @@ -56,9 +56,8 @@ proc list*(registry: var ChecksRegistry) = echo(fmt"") echo(fmt"| IDs | Name | Weight | Openness | Hardware | Quality | Machine-Readability | Description | Why | Source Code |") echo(fmt"| --- | ----- | --- | --- | --- | --- | --- | ----------- | ----------- | ------ |") - for primaryId, checkGenerator in registry.index: - var check = checkGenerator.generate() - var id = checkGenerator.id() + for id, config in registry.getAllChecksDefaultConfig(): + var check = registry.getCheck(config) let singleLineDesc = check.description().replace("\\\n", "
").replace("\n", "
").replace("|", "\\|") let singleLineWhy = check.why().replace("\\\n", "
").replace("\n", "
").replace("|", "\\|") let checkSign = check.getSignificanceFactors()