From 04bae282205a27410538acee4f40199012a38a7c Mon Sep 17 00:00:00 2001 From: thindil Date: Fri, 12 Apr 2024 06:11:43 +0000 Subject: [PATCH] docs: updated the project's documentation FossilOrigin-Name: 9e9c8587c2c64d16435eb6f96331ec08521760c3782cda98444b97dfa4a5eab9 --- doc/configuration.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/configuration.rst b/doc/configuration.rst index feb6eb7..f044a7e 100644 --- a/doc/configuration.rst +++ b/doc/configuration.rst @@ -191,7 +191,7 @@ lvlError. The settings below checks for: 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: [*" @@ -256,7 +256,7 @@ setting shouldn't contain a new line characters. 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 @@ -382,5 +382,5 @@ there is no rules configured for the program. 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.