solhint
Advanced tools
Changelog
[4.5.2] - 2024-03-15
Changelog
[4.5.0] - 2024-03-15
(*) Note: Solhint can work with latest Solidity versions. If new grammar/syntax is added or changed, it could give some false positives or miss a rule. But overall functionality will work as expected.
i
#557named-return-values
rule was renamed to gas-named-return-values and now it is part of Gas Consumption ruleset #552custom-errors
rule was renamed to gas-custom-errors and now it is part of Gas Consumption ruleset #553WARN
instead of OFF
for
foundry-test-functions
and named-parameters-mapping
rules #556Changelog
[4.1.0] - 2024-01-08
payable-fallback
rule #528quotes
rule #529avoid-suicide
rule #531contract-name-camelcase
rule #532event-name-camelcase
rule #533Changelog
[4.0.0] - 2023-10-01
private-vars-leading-underscore
rule to clarify its functionalityno-empty-blocks
rule to clarify its functionality--disc
) #506fix
option now shows the report on screen #509save
option to store report on disk with the standard or the specified format #509explicit-types
rule #504no-console
rule #513private-vars-leading-underscore
rule #511one-contract-per-file
ignore interfaces #514 (Thanks to @cruzdanilo)Changelog
[3.6.1] - 2023-08-11
not-rely-on-time
was REMOVED from RECOMMENDED ruleset<br>
This was long overdue.<br>
Beware!! If you are relying on this rule and it is not explicitly configured (meaning there's only solhint:recommended
option).<br>
You should add this rule manually: {
"extends": "solhint:recommended",
"rules": {
"not-rely-on-time": "warn",
"compiler-version": "off"
},
}
If not explicitly added, this rule will not be executed.
compiler-version
default was updated from ^0.5.2 to ^0.8.0check-send-result
added config clarification in the new Notes
section #482compiler-version
default was updated from ^0.5.2 to ^0.8.0 #483Notes
option on docs to add more information of each rule. See foundry-test-functions
. #476func-named-parameters
- false positives on builtin functions #472ordering
- treat initializer weight same as constructor #474check-send-result
- false positive on `erc777.send()`` function #477explicit-types
- default value is now taking into account when no value is specified in config #481compiler-version
- default value is now taking into account when no value is specified in config #483