-
Notifications
You must be signed in to change notification settings - Fork 12.1k
Update dependency solhint to v6 #5784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually wait, at first sight all the checks in the CI succeed, but upon manual execution I verified that actually solhint is not running any longer, generating a false positive therefore.
Edit: Seems like in newer versions it only automatically pickups the configuration from solhint.json
, so we need to use the flag --config
to use our solhint.config.js
instead
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
bf2f1f0
to
b8bb17d
Compare
I had to force push this one since the history diverged after merging master back. I think there were some cherry picked commit or similar that made history diverge and broke the diff, suggesting there were 45 file differences here. Should be fine now |
Co-authored-by: Ernesto García <ernestognw@gmail.com>
Co-authored-by: Ernesto García <ernestognw@gmail.com>
This PR contains the following updates:
^5.0.0
->^6.0.0
Release Notes
protofire/solhint (solhint)
v6.0.0
Compare Source
BREAKING CHANGE
Some rules were removed from the recommended ruleset and other were promoted. See below:
Rules revision - #692
🟥 DEMOTED
payable-fallback
: Outdated due to the introduction of receive(); rarely needed in modern Solidity.✅ PROMOTED
interface-starts-with-i
: Promotes clarity by clearly distinguishing interfaces from contracts.gas-calldata-parameters
: Encourages optimal memory usage for external functions.gas-increment-by-one
: Suggests using ++i style for gas-efficient increments.gas-indexed-events
: Improves event indexing for off-chain systems and reduces gas usage.gas-small-strings
: Recommends cheaper encoding using bytes32 for short strings.gas-strict-inequalities
: Helps avoid subtle off-by-one bugs in range conditions.gas-struct-packing
: Maximizes storage efficiency by suggesting tight struct packing.duplicated-imports
: Prevents redundant imports that bloat the AST and confuse code structure.import-path-check
: Ensures all imported files exist and resolve correctly, avoiding runtime errors.function-max-lines
: Encourages smaller, more readable and maintainable functions.constructor-syntax
: Enforces modern constructor syntax for consistency and clarity.use-natspec
: Promotes proper documentation with NatSpec for better audits and readability.Fixed
gas-struct-packing
false positives - #690gas-increment-by-one
backward expression - #691Added
use-natspec
: Promote the use of natspec and make several checks to enforce it - #689v5.2.0
Compare Source
Fixed
imports-order
interference withno-unused-imports
- #684Added
cache
flag allowing to skip already evaluated files if no error was thrown and file did not change - #685Thanks to @smol-ninja - @PaulRBerg @lechpzn, @otc-png, @MamunC0der, @kks-code, @RidaMichofi
For making the time of proposing rules, pointing out typos, broken links, unused code, copyright, small reviews, etc. We really appreciate your contributions!
v5.1.0
Compare Source
Added
no-unused-import
- #648 (Thanks to @DenisGorbachev)Updated
ordering
rule - #656BREAKING CHANGE
solhint:default
ruleset - #654Thanks to @fanqiaojun, @maximevtush, @MaxweLL22-22, @PixelPil0t1, @wgyt, @operagxsasha, @Hopium21, @leopardracer, @omahs, @zeevick10, @gap-editor, @Olexandr88, @jirutka
For making the time of pointing out typos, license update, broken links, unused code, copyright, small reviews, etc. We really appreciate your contributions!
Configuration
📅 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.