Skip to content

Commit

Permalink
docs: updated the project's documentation
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 9e9c8587c2c64d16435eb6f96331ec08521760c3782cda98444b97dfa4a5eab9
  • Loading branch information
thindil committed Apr 12, 2024
1 parent 36070cb commit 04bae28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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: [*"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.

0 comments on commit 04bae28

Please sign in to comment.