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: docs/rules.md
+20-19Lines changed: 20 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,10 @@ title: "Rule Index of Solhint"
12
12
|[function-max-lines](./rules/best-practises/function-max-lines.md)| Function body contains "count" lines but allowed no more than maxlines. ||
13
13
|[max-line-length](./rules/best-practises/max-line-length.md)| Line length must be no more than maxlen. ||
14
14
|[max-states-count](./rules/best-practises/max-states-count.md)| Contract has "some count" states declarations but allowed no more than maxstates. | ✔️ |
15
-
|[no-console](./rules/best-practises/no-console.md)| No console.log/logInt/logBytesX/logString/etc & No hardhat and forge-std console.sol import statements| ✔️ |
15
+
|[no-console](./rules/best-practises/no-console.md)| No console.log/logInt/logBytesX/logString/etc & No hardhat and forge-std console.sol import statements.| ✔️ |
|[no-global-import](./rules/best-practises/no-global-import.md)| Import statement includes an entire file instead of selected symbols| ✔️ |
18
-
|[no-unused-import](./rules/best-practises/no-unused-import.md)| Imported name is not used| ✔️ |
17
+
|[no-global-import](./rules/best-practises/no-global-import.md)| Import statement includes an entire file instead of selected symbols.| ✔️ |
18
+
|[no-unused-import](./rules/best-practises/no-unused-import.md)| Imported name is not used.| ✔️ |
19
19
|[no-unused-vars](./rules/best-practises/no-unused-vars.md)| Variable "name" is unused. | ✔️ |
20
20
|[payable-fallback](./rules/best-practises/payable-fallback.md)| When fallback is not payable you will not be able to receive ethers. | ✔️ |
21
21
|[reason-string](./rules/best-practises/reason-string.md)| Require or revert statement must have a reason string and check that each reason string is at most N characters long. | ✔️ |
@@ -32,22 +32,23 @@ title: "Rule Index of Solhint"
|[const-name-snakecase](./rules/naming/const-name-snakecase.md)| Constant name must be in capitalized SNAKE_CASE. | ✔️ |
38
-
|[contract-name-camelcase](./rules/naming/contract-name-camelcase.md)| Contract name must be in CamelCase. | ✔️ |
39
-
|[event-name-camelcase](./rules/naming/event-name-camelcase.md)| Event name must be in CamelCase. | ✔️ |
40
-
|[func-name-mixedcase](./rules/naming/func-name-mixedcase.md)| Function name must be in mixedCase. | ✔️ |
41
-
|[func-param-name-mixedcase](./rules/naming/func-param-name-mixedcase.md)| Function param name must be in mixedCase ||
42
-
|[modifier-name-mixedcase](./rules/naming/modifier-name-mixedcase.md)| Modifier name must be in mixedCase. ||
43
-
|[named-parameters-mapping](./rules/naming/named-parameters-mapping.md)| Solidity v0.8.18 introduced named parameters on the mappings definition ||
44
-
|[private-vars-leading-underscore](./rules/naming/private-vars-leading-underscore.md)| Private and internal names must start with a single underscore. ||
45
-
|[use-forbidden-name](./rules/naming/use-forbidden-name.md)| Avoid to use letters 'I', 'l', 'O' as identifiers. | ✔️ |
46
-
|[var-name-mixedcase](./rules/naming/var-name-mixedcase.md)| Variable name must be in mixedCase. | ✔️ |
47
-
|[func-order](./rules/order/func-order.md)| Function order is incorrect. ||
48
-
|[imports-on-top](./rules/order/imports-on-top.md)| Import statements must be on top. | ✔️ |
49
-
|[ordering](./rules/order/ordering.md)| Check order of elements in file and inside each contract, according to the style guide ||
50
-
|[visibility-modifier-order](./rules/order/visibility-modifier-order.md)| Visibility modifier must be first in list of modifiers. | ✔️ |
|[const-name-snakecase](./rules/naming/const-name-snakecase.md)| Constant name must be in capitalized SNAKE_CASE. (Does not check IMMUTABLES, use immutable-vars-naming) | ✔️ |
38
+
|[contract-name-camelcase](./rules/naming/contract-name-camelcase.md)| Contract name must be in CamelCase. | ✔️ |
39
+
|[event-name-camelcase](./rules/naming/event-name-camelcase.md)| Event name must be in CamelCase. | ✔️ |
40
+
|[func-name-mixedcase](./rules/naming/func-name-mixedcase.md)| Function name must be in mixedCase. | ✔️ |
41
+
|[func-param-name-mixedcase](./rules/naming/func-param-name-mixedcase.md)| Function param name must be in mixedCase. ||
42
+
|[immutable-vars-naming](./rules/naming/immutable-vars-naming.md)| Check Immutable variables. Capitalized SNAKE_CASE or mixedCase depending on configuration. | ✔️ |
43
+
|[modifier-name-mixedcase](./rules/naming/modifier-name-mixedcase.md)| Modifier name must be in mixedCase. ||
44
+
|[named-parameters-mapping](./rules/naming/named-parameters-mapping.md)| Solidity v0.8.18 introduced named parameters on the mappings definition. ||
45
+
|[private-vars-leading-underscore](./rules/naming/private-vars-leading-underscore.md)| Private and internal names must start with a single underscore. ||
46
+
|[use-forbidden-name](./rules/naming/use-forbidden-name.md)| Avoid to use letters 'I', 'l', 'O' as identifiers. | ✔️ |
47
+
|[var-name-mixedcase](./rules/naming/var-name-mixedcase.md)| Variable name must be in mixedCase. (Does not check IMMUTABLES, use immutable-vars-naming) | ✔️ |
48
+
|[func-order](./rules/order/func-order.md)| Function order is incorrect. ||
49
+
|[imports-on-top](./rules/order/imports-on-top.md)| Import statements must be on top. | ✔️ |
50
+
|[ordering](./rules/order/ordering.md)| Check order of elements in file and inside each contract, according to the style guide. ||
51
+
|[visibility-modifier-order](./rules/order/visibility-modifier-order.md)| Visibility modifier must be first in list of modifiers. | ✔️ |
| 0 | Rule severity. Must be one of "error", "warn", "off". | warn |
23
+
| 1 | A JSON object with a single property "immutablesAsConstants" as boolean specifying if immutable variables should be treated as constants | {"immutablesAsConstants":true} |
0 commit comments