Skip to content
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

[Snyk] Upgrade solhint from 3.6.2 to 5.0.3 #29

Merged
merged 1 commit into from
Sep 15, 2024

Conversation

lucentlabz
Copy link

snyk-top-banner

Snyk has created this PR to upgrade solhint from 3.6.2 to 5.0.3.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


⚠️ Warning: This PR contains major version upgrade(s), and may be a breaking change.

  • The recommended version is 12 versions ahead of your current version.

  • The recommended version was released on a month ago.

Release notes
Package name: solhint
  • 5.0.3 - 2024-08-03

    [5.0.3] - 2024-08-03

    Fixed

    • New Rule: Imports order #593
  • 5.0.2 - 2024-07-25

    [5.0.2] - 2024-07-25

    Fixed

    Added

    • New Rule: Imports order #587
  • 5.0.1 - 2024-05-13

    [5.0.1] - 2024-05-13

    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.

  • 5.0.0 - 2024-05-11

    [5.0.0] - 2024-05-11

    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 rules
    Exit with 1 code When execution was ok and there are errors reported
    Exit with 1 code When execution was ok and max warnings is lower than the reported warnings
    Exit 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

  • 4.5.4 - 2024-04-10

    [4.5.4] - 2024-04-10

    Fixed

    • gas-custom-errors improved logic to ranged pragma versions #573
    • gas-indexed-events #573
  • 4.5.3 - 2024-04-10
  • 4.5.2 - 2024-03-15

    [4.5.2] - 2024-03-15

    Updated

    • Update Readme file to include all autofix rules
    • Update docker file
    • Update package json file

    [4.5.0] - 2024-03-15

    Updated

    • Update dependencies in package json #548
    • Custom errors rules checks from 0.8.4 forward before warning #555
    • Parser support up to Solidity 0.8.22 (*)

    (*) 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

    • New Rule: Interface starts with i #557

    Gas Consumption Rules

    • New Rule: [GC] Mutlitoken1155 rule #541
    • New Rule: [GC] Small strings check #542
    • New Rule: [GC] Indexed events #543
    • New Rule: [GC] Calldata parameters #544
    • New Rule: [GC] Increment by one #545
    • New Rule: [GC] Struct packing #546
    • New Rule: [GC] Name Return Values #552
    • New Rule: [GC] Custom Errors #553 #555
    • New Rule: [GC] Dot Length in Loops #559
    • New Rule: [GC] Gas Strict Inequalities #560

    Fixed

    • explicit-types logic improved and bug free #551
    • payable fallback Improved behavior #561

    BREAKING CHANGES

    • 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
    • Return error 0 when executed correctly #554
    • Default severity modified to WARN instead of OFF for
      foundry-test-functions and named-parameters-mapping rules #556
  • 4.5.1 - 2024-03-15
  • 4.5.0 - 2024-03-15

    Updated

    • Update dependencies in package json #548
    • Custom errors rules checks from 0.8.4 forward before warning #555
    • Parser support up to Solidity 0.8.22 (*)

    (*) 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

    • New Rule: Interface starts with i #557

    Gas Consumption Rules

    • New Rule: [GC] Mutlitoken1155 rule #541
    • New Rule: [GC] Small strings check #542
    • New Rule: [GC] Indexed events #543
    • New Rule: [GC] Calldata parameters #544
    • New Rule: [GC] Increment by one #545
    • New Rule: [GC] Struct packing #546
    • New Rule: [GC] Name Return Values #552
    • New Rule: [GC] Custom Errors #553 #555
    • New Rule: [GC] Dot Length in Loops #559
    • New Rule: [GC] Gas Strict Inequalities #560

    Fixed

    • explicit-types logic improved and bug free #551
    • payable fallback Improved behavior #561

    BREAKING CHANGES

    • 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
    • Return error 0 when executed correctly #554
    • Default severity modified to WARN instead of OFF for
      foundry-test-functions and named-parameters-mapping rules #556
  • 4.1.1 - 2024-01-08

    [4.1.1] - 2024-01-08

    Fixed

    • Fix changelog typos

    [4.1.0] - 2024-01-08

    Updated

    Added

    • Official Docker Image #524 (Thanks to @ keypee)
    • Autofix for payable-fallback rule #528
    • Autofix for quotes rule #529
    • Autofix for avoid-suicide rule #531
    • Autofix for contract-name-camelcase rule #532
    • Autofix for event-name-camelcase rule #533

    Fixed

    • Fix private vars leading underscore on libraries #525
  • 4.1.0 - 2024-01-08
  • 4.0.0 - 2023-10-27

    JOIN OUR DISCORD SERVER: HERE

    [4.0] - 2023-10-01

    Updated

    • Enhance explicit types sensitivity #493 (Thanks to @ vladyan18)
    • Docs on private-vars-leading-underscore rule to clarify its functionality
    • Changelog and docs for no-empty-blocks rule to clarify its functionality
    • Require package with full path #515 (Thanks to @ zouguangxian)

    Added

    • Check for updates on Solhint version to keep users up to date. There's an option to disable this check (--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
    • Autofix for explicit-types rule #504
    • Autofix for no-console rule #513
    • Autofix for private-vars-leading-underscore rule #511

    Fixed

  • 3.6.2 - 2023-08-17

    [3.6.2] - 2023-08-17

    Added

    • New Rule: one-contract-per-file - Enforces the use of ONE contract per file #487

    Fixed

    • foundry-test-functions - Modified regex to include invariant and statefulFuzz tests #484
    • quotes - To allow quotes inside double quotes and viceversa #485
    • JSON - Formatter returning JS object instead of standard json #490
from solhint GitHub release notes

Important

  • Warning: This PR contains a major version upgrade, and may be a breaking change.
  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Snyk has created this PR to upgrade solhint from 3.6.2 to 5.0.3.

See this package in npm:
solhint

See this project in Snyk:
https://app.snyk.io/org/lucentlabz/project/78d08558-fbc3-4ae9-8c9b-a47a76482263?utm_source=github&utm_medium=referral&page=upgrade-pr
@lucentlabz lucentlabz merged commit 53ee528 into master Sep 15, 2024
9 of 10 checks passed
@lucentlabz lucentlabz deleted the snyk-upgrade-005af1870694fc0b3b0865893eddf408 branch September 15, 2024 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants