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
|[code-complexity](./rules/best-practices/code-complexity.md)| Function has cyclomatic complexity "current" but allowed no more than configured max complexity. |||
12
12
|[explicit-types](./rules/best-practices/explicit-types.md)| Forbid or enforce explicit types (like uint256) that have an alias (like uint). | $~~~~~~~~$✔️ ||
13
-
|[function-max-lines](./rules/best-practices/function-max-lines.md)| Function body contains "count" lines but allowed no more than maxlines. |||
13
+
|[function-max-lines](./rules/best-practices/function-max-lines.md)| Function body contains "count" lines but allowed no more than maxlines. |$~~~~~~~~$✔️||
14
14
|[max-line-length](./rules/best-practices/max-line-length.md)| Line length should not exceed configured number of characters. |||
15
15
|[max-states-count](./rules/best-practices/max-states-count.md)| Contract has "some count" states declarations but allowed no more than defined max states. | $~~~~~~~~$✔️ ||
16
16
|[no-console](./rules/best-practices/no-console.md)| No console.log/logInt/logBytesX/logString/etc & No hardhat and forge-std console.sol import statements. | $~~~~~~~~$✔️ ||
@@ -19,18 +19,18 @@ title: "Rule Index of Solhint"
19
19
|[no-unused-import](./rules/best-practices/no-unused-import.md)| Imported object name is not being used by the contract. | $~~~~~~~~$✔️ ||
20
20
|[no-unused-vars](./rules/best-practices/no-unused-vars.md)| Variable "name" is unused. | $~~~~~~~~$✔️ ||
21
21
|[one-contract-per-file](./rules/best-practices/one-contract-per-file.md)| Enforces the use of ONE Contract per file see [here](https://docs.soliditylang.org/en/v0.8.21/style-guide.html#contract-and-library-names)| $~~~~~~~~$✔️ ||
22
-
|[payable-fallback](./rules/best-practices/payable-fallback.md)| When fallback is not payable and there is no receive function you will not be able to receive currency. |$~~~~~~~~$✔️||
22
+
|[payable-fallback](./rules/best-practices/payable-fallback.md)| When fallback is not payable and there is no receive function you will not be able to receive currency. |||
23
23
|[reason-string](./rules/best-practices/reason-string.md)| Require or revert statement must have a reason string and check that each reason string is at most N characters long. | $~~~~~~~~$✔️ ||
24
-
|[use-natspec](./rules/best-practices/use-natspec.md)| Enforces the presence and correctness of NatSpec tags. |||
25
-
|[constructor-syntax](./rules/best-practices/constructor-syntax.md)| Constructors should use the new constructor keyword. |||
24
+
|[use-natspec](./rules/best-practices/use-natspec.md)| Enforces the presence and correctness of NatSpec tags. |$~~~~~~~~$✔️||
25
+
|[constructor-syntax](./rules/best-practices/constructor-syntax.md)| Constructors should use the new constructor keyword. |$~~~~~~~~$✔️||
|[interface-starts-with-i](./rules/naming/interface-starts-with-i.md)| Solidity Interfaces names should start with an `I`|||
33
-
|[duplicated-imports](./rules/miscellaneous/duplicated-imports.md)| Check if an import is done twice in the same file and there is no alias |||
32
+
|[interface-starts-with-i](./rules/naming/interface-starts-with-i.md)| Solidity Interfaces names should start with an `I`|$~~~~~~~~$✔️||
33
+
|[duplicated-imports](./rules/miscellaneous/duplicated-imports.md)| Check if an import is done twice in the same file and there is no alias |$~~~~~~~~$✔️||
34
34
|[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) | $~~~~~~~~$✔️ ||
35
35
|[contract-name-capwords](./rules/naming/contract-name-capwords.md)| Contract, Structs and Enums should be in CapWords. | $~~~~~~~~$✔️ ||
36
36
|[event-name-capwords](./rules/naming/event-name-capwords.md)| Event name must be in CapWords. | $~~~~~~~~$✔️ ||
@@ -54,16 +54,16 @@ title: "Rule Index of Solhint"
|[gas-calldata-parameters](./rules/gas-consumption/gas-calldata-parameters.md)| Suggest calldata keyword on function arguments when read only |||
57
+
|[gas-calldata-parameters](./rules/gas-consumption/gas-calldata-parameters.md)| Suggest calldata keyword on function arguments when read only |$~~~~~~~~$✔️||
58
58
|[gas-custom-errors](./rules/gas-consumption/gas-custom-errors.md)| Enforces the use of Custom Errors over Require with strings error and Revert statements | $~~~~~~~~$✔️ ||
59
-
|[gas-increment-by-one](./rules/gas-consumption/gas-increment-by-one.md)| Suggest increments by one, like this ++i instead of other type |||
60
-
|[gas-indexed-events](./rules/gas-consumption/gas-indexed-events.md)| Suggest indexed arguments on events for uint, bool and address |||
59
+
|[gas-increment-by-one](./rules/gas-consumption/gas-increment-by-one.md)| Suggest increments by one, like this ++i instead of other type |$~~~~~~~~$✔️||
60
+
|[gas-indexed-events](./rules/gas-consumption/gas-indexed-events.md)| Suggest indexed arguments on events for uint, bool and address |$~~~~~~~~$✔️||
61
61
|[gas-length-in-loops](./rules/gas-consumption/gas-length-in-loops.md)| Suggest replacing object.length in a loop condition to avoid calculation on each lap |||
62
62
|[gas-multitoken1155](./rules/gas-consumption/gas-multitoken1155.md)| ERC1155 is a cheaper non-fungible token than ERC721 |||
63
63
|[gas-named-return-values](./rules/gas-consumption/gas-named-return-values.md)| Enforce the return values of a function to be named |||
64
-
|[gas-small-strings](./rules/gas-consumption/gas-small-strings.md)| Keep strings smaller than 32 bytes|||
65
-
|[gas-strict-inequalities](./rules/gas-consumption/gas-strict-inequalities.md)| Suggest Strict Inequalities over non Strict ones |||
66
-
|[gas-struct-packing](./rules/gas-consumption/gas-struct-packing.md)| Suggest to re-arrange struct packing order when it is inefficient |||
64
+
|[gas-small-strings](./rules/gas-consumption/gas-small-strings.md)| Keep strings smaller than 32 bytes. Promote the use of custom errors| $~~~~~~~~$✔️||
65
+
|[gas-strict-inequalities](./rules/gas-consumption/gas-strict-inequalities.md)| Suggest Strict Inequalities over non Strict ones |$~~~~~~~~$✔️||
66
+
|[gas-struct-packing](./rules/gas-consumption/gas-struct-packing.md)| Suggest to re-arrange struct packing order when it is inefficient |$~~~~~~~~$✔️||
0 commit comments