Solhint

Solhint

Community Analyzer
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 order is incorrect SOLHINT-W1032
Style
Minor

Function order is incorrect.

Import statements must be on top SOLHINT-W1033
Style
Minor

Import statements must be on top.

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.

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.

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'.

Constant name must be in capitalized SNAKE_CASE. (Does not check IMMUTABLES, use immutable-vars-naming) SOLHINT-W1018
Style
Minor

Constant name must be in capitalized SNAKE_CASE. (Does not check IMMUTABLES, use immutable-vars-naming)

Contract, Structs and Enums should be in CamelCase SOLHINT-W1019
Style
Minor

Contract, Structs and Enums should be in CamelCase.

Event name must be in CamelCase SOLHINT-W1020
Style
Minor

Event name must be in CamelCase.

Enforce naming convention on functions for Foundry test cases SOLHINT-W1021
Style
Minor

Enforce naming convention on functions for Foundry test cases