Solhint is an open-source project to provide a linting utility for Solidity code.
(*) 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
#557
named-return-values
rule was renamed to gas-named-return-values and now it is part of Gas Consumption ruleset #552
custom-errors
rule was renamed to gas-custom-errors and now it is part of Gas Consumption ruleset #553
WARN
instead of OFF
for
foundry-test-functions
and named-parameters-mapping
rules #556
(*) 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
#557
named-return-values
rule was renamed to gas-named-return-values and now it is part of Gas Consumption ruleset #552
custom-errors
rule was renamed to gas-custom-errors and now it is part of Gas Consumption ruleset #553
WARN
instead of OFF
for
foundry-test-functions
and named-parameters-mapping
rules #556
payable-fallback
rule #528
quotes
rule #529
avoid-suicide
rule #531
contract-name-camelcase
rule #532
event-name-camelcase
rule #533
JOIN OUR DISCORD SERVER: HERE
private-vars-leading-underscore
rule to clarify its functionalityno-empty-blocks
rule to clarify its functionality--disc
) #506
fix
option now shows the report on screen #509
save
option to store report on disk with the standard or the specified format #509
explicit-types
rule #504
no-console
rule #513
private-vars-leading-underscore
rule #511
one-contract-per-file
ignore interfaces #514 (Thanks to @cruzdanilo)one-contract-per-file
- Enforces the use of ONE contract per file #487
not-rely-on-time
was REMOVED from RECOMMENDED rulesetsolhint:recommended
option). {
"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.0Notes
option on docs to add more information of each rule. See foundry-test-functions
. #476
func-named-parameters
- false positives on builtin functions #472
ordering
- treat initializer weight same as constructor #474
check-send-result
- false positive on `erc777.send()`` function #477
explicit-types
- default value is now taking into account when no value is specified in config #481
compiler-version
- default value is now taking into account when no value is specified in config #483
check-send-result
added config clarification in the new Notes
section #482
compiler-version
default was updated from ^0.5.2 to ^0.8.0 #483
Full Changelog: https://github.com/protofire/solhint/compare/3.5.1...3.6.1
ignoreConstructors
option for no-empty-blocks
#418
quotes
rule, added default rules list on readme #443
reason-string
rule #446
max-warnings
#455
no-empty-blocks
rule for receive() function #466
list-rules
command #449
Compact formatter
#457
Several fixes. Check CHANGELOG.md file for more information.
Several fixes and new rules addition. Check CHANGELOG.md file for more information.