Skip to content

Commit 6c2acaf

Browse files
chore(deps): update dependency solhint to v6 (#159)
This PR contains the following updates: | Package | Type | Update | Change | OpenSSF | |---|---|---|---|---| | [solhint](https://protofire.github.io/solhint/) ([source](https://redirect.github.com/protofire/solhint)) | dependencies | major | [`5.2.0` -> `6.0.0`](https://renovatebot.com/diffs/npm/solhint/5.2.0/6.0.0) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/protofire/solhint/badge)](https://securityscorecards.dev/viewer/?uri=github.com/protofire/solhint) | --- ### Release Notes <details> <summary>protofire/solhint (solhint)</summary> ### [`v6.0.0`](https://redirect.github.com/protofire/solhint/blob/HEAD/CHANGELOG.md#600---2025-07-04) [Compare Source](https://redirect.github.com/protofire/solhint/compare/v5.2.0...v6.0.0) ##### BREAKING CHANGE Some rules were removed from the recommended ruleset and other were promoted. See below: Rules revision - [#&#8203;692](https://redirect.github.com/protofire/solhint/pull/692) ##### 🟥 DEMOTED - `payable-fallback`: Outdated due to the introduction of receive(); rarely needed in modern Solidity. <br> ##### ✅ 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 - [#&#8203;690](https://redirect.github.com/protofire/solhint/pull/690) - `gas-increment-by-one` backward expression - [#&#8203;691](https://redirect.github.com/protofire/solhint/pull/691) - Typo (thanks to @&#8203;[MarkFizz77](https://redirect.github.com/MarkFizz77)) ##### Added - `use-natspec`: Promote the use of natspec and make several checks to enforce it - [#&#8203;689](https://redirect.github.com/protofire/solhint/pull/689) <br><br> </details> --- ### 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/settlemint/solidity-empty). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNy4yIiwidXBkYXRlZEluVmVyIjoiNDEuMTcuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19--> Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 4ea2da2 commit 6c2acaf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bun.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"@nomiclabs/hardhat-solhint": "4.1.0",
1313
"@openzeppelin/subgraphs": "0.1.8-5",
1414
"hardhat": "2.26.1",
15-
"solhint": "5.2.0",
15+
"solhint": "6.0.0",
1616
},
1717
},
1818
},
@@ -1290,7 +1290,7 @@
12901290

12911291
"solc": ["[email protected]", "", { "dependencies": { "command-exists": "^1.2.8", "commander": "^8.1.0", "follow-redirects": "^1.12.1", "js-sha3": "0.8.0", "memorystream": "^0.3.1", "semver": "^5.5.0", "tmp": "0.0.33" }, "bin": { "solcjs": "solc.js" } }, "sha512-yiPQNVf5rBFHwN6SIf3TUUvVAFKcQqmSUFeq+fb6pNRCo0ZCgpYOZDi3BVoezCPIAcKrVYd/qXlBLUP9wVrZ9g=="],
12921292

1293-
"solhint": ["solhint@5.2.0", "", { "dependencies": { "@solidity-parser/parser": "^0.20.0", "ajv": "^6.12.6", "ajv-errors": "^1.0.1", "antlr4": "^4.13.1-patch-1", "ast-parents": "^0.0.1", "better-ajv-errors": "^2.0.2", "chalk": "^4.1.2", "commander": "^10.0.0", "cosmiconfig": "^8.0.0", "fast-diff": "^1.2.0", "fs-extra": "^11.1.0", "glob": "^8.0.3", "ignore": "^5.2.4", "js-yaml": "^4.1.0", "latest-version": "^7.0.0", "lodash": "^4.17.21", "pluralize": "^8.0.0", "semver": "^7.5.2", "strip-ansi": "^6.0.1", "table": "^6.8.1", "text-table": "^0.2.0" }, "optionalDependencies": { "prettier": "^2.8.3" }, "bin": { "solhint": "solhint.js" } }, "sha512-9NZC1zt+O2K7zEZOhTT9rFeB6GdxC6qTX5pWX70RaQoflR9RejJQUC+/19LNi+e7K9Ptb4k7XAWO9wY5mkprHg=="],
1293+
"solhint": ["solhint@6.0.0", "", { "dependencies": { "@solidity-parser/parser": "^0.20.0", "ajv": "^6.12.6", "ajv-errors": "^1.0.1", "antlr4": "^4.13.1-patch-1", "ast-parents": "^0.0.1", "better-ajv-errors": "^2.0.2", "chalk": "^4.1.2", "commander": "^10.0.0", "cosmiconfig": "^8.0.0", "fast-diff": "^1.2.0", "fs-extra": "^11.1.0", "glob": "^8.0.3", "ignore": "^5.2.4", "js-yaml": "^4.1.0", "latest-version": "^7.0.0", "lodash": "^4.17.21", "pluralize": "^8.0.0", "semver": "^7.5.2", "strip-ansi": "^6.0.1", "table": "^6.8.1", "text-table": "^0.2.0" }, "optionalDependencies": { "prettier": "^2.8.3" }, "bin": { "solhint": "solhint.js" } }, "sha512-PQGfwFqfeYdebi2tEG1fhVfMjqSzbW3Noz+LYf8UusKe5nkikCghdgEjYQPcGfFZj4snlVyJQt//AaxkubOtVQ=="],
12941294

12951295
"solidity-coverage": ["[email protected]", "", { "dependencies": { "@ethersproject/abi": "^5.0.9", "@solidity-parser/parser": "^0.19.0", "chalk": "^2.4.2", "death": "^1.1.0", "difflib": "^0.2.4", "fs-extra": "^8.1.0", "ghost-testrpc": "^0.0.2", "global-modules": "^2.0.0", "globby": "^10.0.1", "jsonschema": "^1.2.4", "lodash": "^4.17.21", "mocha": "^10.2.0", "node-emoji": "^1.10.0", "pify": "^4.0.1", "recursive-readdir": "^2.2.2", "sc-istanbul": "^0.4.5", "semver": "^7.3.4", "shelljs": "^0.8.3", "web3-utils": "^1.3.6" }, "peerDependencies": { "hardhat": "^2.11.0" }, "bin": { "solidity-coverage": "plugins/bin.js" } }, "sha512-ItAAObe5GaEOp20kXC2BZRnph+9P7Rtoqg2mQc2SXGEHgSDF2wWd1Wxz3ntzQWXkbCtIIGdJT918HG00cObwbA=="],
12961296

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@nomicfoundation/hardhat-toolbox-viem": "3.0.0",
4242
"@nomiclabs/hardhat-solhint": "4.1.0",
4343
"hardhat": "2.26.1",
44-
"solhint": "5.2.0",
44+
"solhint": "6.0.0",
4545
"@openzeppelin/subgraphs": "0.1.8-5"
4646
},
4747
"overrides": {

0 commit comments

Comments
 (0)