Skip to content

Commit

Permalink
Do not --list disabled checks [fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
hoijui committed Dec 3, 2023
1 parent 463f3c0 commit a7a85a8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/checker.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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", "<br/>").replace("\n", "<br/>").replace("|", "\\|")
let singleLineWhy = check.why().replace("\\\n", "<br/>").replace("\n", "<br/>").replace("|", "\\|")
let checkSign = check.getSignificanceFactors()
Expand Down

0 comments on commit a7a85a8

Please sign in to comment.