You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .nimalyzer.cfg
+2-5Lines changed: 2 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -5,10 +5,7 @@ showSummary true
5
5
# check hasPragma all contractual "raises: [*"
6
6
# explanation Contracts helps in testing the program and all declared procedures should have declared contracts for them. The procedures should avoid raising exceptions and handle each possible exception by themselves for greater stability of the program.
7
7
8
-
check paramsUsed procedures
9
-
explanation Unused parameters only clutter the source code and can cause confusion.
10
-
11
-
check paramsUsed macros
8
+
check params used all
12
9
explanation Unused parameters only clutter the source code and can cause confusion.
13
10
14
11
# TODO
@@ -55,7 +52,7 @@ explanation Short case statements can be replaced by if statements for better re
55
52
check ifStatements max 3
56
53
explanation Long if statements can be replaced by case statements for better readability.
57
54
58
-
check complexity cyclomatic all 40
55
+
check complexity all 40
59
56
explanation A code with high cyclomatic complexity is hard to understand and maintain. Please reduce the amount of the code branches (like, loops, if or case statements).
0 commit comments