src/lint/checks

Search:
Group by:
Source   Edit  

Stock checks shipped with Lint.

Types

HeaderSettings = object
  header*: string
  findingMsg* = "missing or incorrect header"
Settings for the header check. Source   Edit  
PatternsSettings = object
  forbidden*: seq[string]
  allowed*: seq[string]
  findingMsg* = "`$forbiddenMatch` matches `$forbiddenPattern`"
Settings for the patterns check. Source   Edit  

Lets

patterns = addCheck(linter, runPatterns, PatternsSettings(
    findingMsg: "`$forbiddenMatch` matches `$forbiddenPattern`"))
Check that a file doesn't contain forbidden regex patterns. Source   Edit