Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^3.3.7
->^5.0.0
Release Notes
protofire/solhint (solhint)
v5.0.3
Compare Source
Fixed
v5.0.2
Compare Source
Fixed
func-named-parameters
exclude abi.encodeX from the rule #583 (Thanks to @0xCLARITY)Added
v5.0.1
Compare Source
BREAKING CHANGES (refer to v5.0.0)
Fixed an issue on the returining values where only was evaluating the first report instead of all of them.
v5.0.0
Compare Source
BREAKING CHANGES
Solhint EXIT codes
Solhint changed how the exit codes are implemented:
Exit with 0 code
When execution was ok and there were no errors when evaluating the code according to the rulesExit with 1 code
When execution was ok and there are errors reportedExit with 1 code
When execution was ok and max warnings is lower than the reported warningsExit with 255 code
When there's an error in the execution (bad config, writing not allowed, wrong parameter, file not found, etc)Solhint QUIET mode
QUIET mode (-c quiet) option now works with the warnings and may exit with 1 if there are more than defined by user
Thanks to @juanpcapurro for providing the code
v4.5.4
Compare Source
Fixed
gas-custom-errors
improved logic to ranged pragma versions #573gas-indexed-events
#573v4.5.3
Compare Source
v4.5.2
Compare Source
Updated
v4.5.1
Compare Source
v4.5.0
Compare Source
Updated
(*) 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.
Added
i
#557Gas Consumption Rules
Fixed
explicit-types
logic improved and bug free #551payable fallback
Improved behavior #561BREAKING CHANGES
named-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 ofOFF
forfoundry-test-functions
andnamed-parameters-mapping
rules #556v4.1.1
Compare Source
Fixed
v4.1.0
Compare Source
Updated
Sarif
formatter #530 (Thanks to @eshaan7)npm
on workflows #534Added
payable-fallback
rule #528quotes
rule #529avoid-suicide
rule #531contract-name-camelcase
rule #532event-name-camelcase
rule #533Fixed
v4.0.0
Compare Source
Updated
private-vars-leading-underscore
rule to clarify its functionalityno-empty-blocks
rule to clarify its functionalityAdded
--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 #511Fixed
one-contract-per-file
ignore interfaces #514 (Thanks to @cruzdanilo)v3.6.2
Compare Source
Added
one-contract-per-file
- Enforces the use of ONE contract per file #487Fixed
foundry-test-functions
- Modified regex to include invariant and statefulFuzz tests #484quotes
- To allow quotes inside double quotes and viceversa #485JSON
- Formatter returning JS object instead of standard json #490v3.6.1
Compare Source
BREAKING CHANGE
not-rely-on-time
was REMOVED from RECOMMENDED rulesetThis was long overdue.
Beware!! If you are relying on this rule and it is not explicitly configured (meaning there's only
solhint:recommended
option).You should add this rule manually:
If not explicitly added, this rule will not be executed.
SPECIAL ATTENTION
compiler-version
default was updated from ^0.5.2 to ^0.8.0Updated
check-send-result
added config clarification in the newNotes
section #482compiler-version
default was updated from ^0.5.2 to ^0.8.0 #483Added
Notes
option on docs to add more information of each rule. Seefoundry-test-functions
. #476Fixed
func-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 #483v3.5.1
Compare Source
Updated
quotes
rule, added default rules list on readme #443reason-string
rule #446max-warnings
#455no-empty-blocks
rule for receive() function #466Added
list-rules
command #449Compact formatter
#457Fixed
maxWarnings
parameter waiting review #439–fix
option not working in avoid-throw rule #442stdin
command #450Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.