Solhint

Solhint

Community Analyzer
No console.log/logInt/logBytesX/logString/etc & No hardhat and forge-std console.sol import statements SOLHINT-W1007
Anti-pattern
Major

No console.log/logInt/logBytesX/logString/etc & No hardhat and forge-std console.sol import statements.

Function body contains count lines but allowed no more than maxlines SOLHINT-W1004
Anti-pattern
Minor

Function body contains count lines but allowed no more than maxlines.

Function has cyclomatic complexity current but allowed no more than maxcompl SOLHINT-W1001
Anti-pattern
Minor

Function has cyclomatic complexity current but allowed no more than maxcompl.

Forbid or enforce explicit types (like uint256) that have an alias (like uint) SOLHINT-W1003
Anti-pattern
Minor

Forbid or enforce explicit types (like uint256) that have an alias (like uint).

Contract has some count states declarations but allowed no more than maxstates SOLHINT-W1006
Anti-pattern
Minor

Contract has some count states declarations but allowed no more than maxstates.

Code block has zero statements inside. Exceptions apply SOLHINT-W1008
Anti-pattern
Minor

Code block has zero statements inside. Exceptions apply.

Import statement includes an entire file instead of selected symbols SOLHINT-W1009
Anti-pattern
Minor

Import statement includes an entire file instead of selected symbols.

Imported object name is not being used by the contract SOLHINT-W1010
Anti-pattern
Minor

Imported object name is not being used by the contract.

Variable name is unused SOLHINT-W1011
Anti-pattern
Minor

Variable name is unused.

When fallback is not payable you will not be able to receive ethers SOLHINT-W1013
Anti-pattern
Minor

When fallback is not payable you will not be able to receive ethers.

Require or revert statement must have a reason string and check that each reason string is at most N characters long SOLHINT-W1014
Anti-pattern
Minor

Require or revert statement must have a reason string and check that each reason string is at most N characters long.

Constructors should use the new constructor keyword SOLHINT-W1015
Anti-pattern
Minor

Constructors should use the new constructor keyword.

Enforces the use of double or simple quotes as configured for string literals. Values must be 'single' or 'double' SOLHINT-W1017
Anti-pattern
Major

Enforces the use of double or simple quotes as configured for string literals. Values must be 'single' or 'double'.

Line length must be no more than maxlen SOLHINT-W1005
Anti-pattern
Major

Line length must be no more than maxlen.

Check that all public or external functions are override. This is iseful to make sure that the whole API is extracted in an interface SOLHINT-W1016
Anti-pattern
Minor

Check that all public or external functions are override. This is iseful to make sure that the whole API is extracted in an interface.

Enforces the use of Custom Errors over Require and Revert statements SOLHINT-W1002
Anti-pattern
Minor

Enforces the use of Custom Errors over Require and Revert statements