The list contains the program's rules available in the repository version of the program.
- assignments rule - allows checking the assignments in the code, do they shorthand or full assignments.
- caseStatements rule - allows check
case
statements in the module for minimum and maximum amount of branches. - comments rule - allows checking the comments in the code against regular expression pattern or check if the code contains legal header.
- complexity rule - allows checking the code blocks for their cyclomatic complexity.
- forStatements rule - allows check
for
statements in the module for direct calls to iterators. - hasDoc rule - allows check do all declared public entities and all routines (like procedures, etc.) in a module have a documentation.
- hasEntity rule - allows check do a module contains the selected Nim entity (like constants, variables, etc.) with the selected name.
- hasPragma rule - allows check do procedures in a module have declared specified pragma(s).
- localHides rule - allows check do any local declaration of variable hides a previously declared one in a module.
- ifStatements rule - allows check
if
statements in the module for empty statements, negative conditions, etc. - namedParams rule - allows check do all calls in the module use named parameters.
- namingConv rule - allows check do all variables, procedures or enumerations fields follow the selected naming convention.
- objects rule - allows check do any object's type declaration contains public fields.
- paramsUsed rule - allows check do all declared routines (like procedures, functions, etc.) in a module use their parameters.
- tryStatements rule - allows check
try
statements in the module for generalexcept
branches, the selected exceptions, etc. - varDeclared rule - allows check do all declared variables in a module have declared types or values.
- varUplevel rule - allows check do any declared variables in a module can be upgraded to
let
orconst
.