diff --git a/config/nimalyzer.cfg b/config/nimalyzer.cfg index bcbd77d..a997971 100644 --- a/config/nimalyzer.cfg +++ b/config/nimalyzer.cfg @@ -184,7 +184,7 @@ message Checking the program, tools and the program's unit tests # 15. If any `if` statement can be replaced with `case` statement due to large amount of branches. # 16. If any code block doesn't exceed limit of cyclomatic complexity. # 17. If any `try` statement doesn't have empty `except` branch -# 18. If all object's type's declarations contains only private fields. +# 18. If all object's type's declarations contains only private fields and don't use `string` or `int` for their fields' types. # # :: check hasPragma procedures contractual "raises: [*" "tags: [*" @@ -249,7 +249,7 @@ explanation A code with high cyclomatic complexity is hard to understand and mai check not trystatements empty explanation Except branches with names of exceptions made code more readable. It also prevents problems when the checked code will start propagating new exceptions. -check not objects publicfields +check not objects all explanation Each object's declaration should define also getters and setters for its fields. It made maintaining the code easier, when the type will be upgraded or required to use in multithread environment. # Search rules @@ -375,5 +375,5 @@ explanation A code with high cyclomatic complexity is hard to understand and mai check not trystatements empty explanation Except branches with names of exceptions made code more readable. It also prevents problems when the checked code will start propagating new exceptions. -check not objects publicfields +check not objects all explanation Each object's declaration should define also getters and setters for its fields. It made maintaining the code easier, when the type will be upgraded or required to use in multithread environment.