Solhint

Solhint

Community Analyzer
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.

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

Function name must be in mixedCase SOLHINT-W1022
Style
Minor

Function name must be in mixedCase.

Enforce named parameters for function calls with 4 or more arguments. This rule may have some false positives SOLHINT-W1023
Style
Minor

Enforce named parameters for function calls with 4 or more arguments. This rule may have some false positives

Function param name must be in mixedCase SOLHINT-W1024
Style
Minor

Function param name must be in mixedCase.

Check Immutable variables. Capitalized SNAKE_CASE or mixedCase depending on configuration SOLHINT-W1025
Style
Minor

Check Immutable variables. Capitalized SNAKE_CASE or mixedCase depending on configuration.

Modifier name must be in mixedCase SOLHINT-W1026
Style
Minor

Modifier name must be in mixedCase.

Solidity v0.8.18 introduced named parameters on the mappings definition SOLHINT-W1027
Style
Minor

Solidity v0.8.18 introduced named parameters on the mappings definition.

Enforce the return values of a function to be named SOLHINT-W1028
Style
Minor

Enforce the return values of a function to be named

Non-external functions and state variables should start with a single underscore. Others, shouldn't SOLHINT-W1029
Style
Minor

Non-external functions and state variables should start with a single underscore. Others, shouldn't

Variable name must be in mixedCase. (Does not check IMMUTABLES, use immutable-vars-naming) SOLHINT-W1031
Style
Minor

Variable name must be in mixedCase. (Does not check IMMUTABLES, use immutable-vars-naming)

Check order of elements in file and inside each contract, according to the style guide SOLHINT-W1034
Style
Minor

Check order of elements in file and inside each contract, according to the style guide.

Visibility modifier must be first in list of modifiers SOLHINT-W1035
Style
Minor

Visibility modifier must be first in list of modifiers.

Avoid to use letters 'I', 'l', 'O' as identifiers SOLHINT-W1030
Style
Minor

Avoid to use letters 'I', 'l', 'O' as identifiers.