Skip to content

Commit 03d75d1

Browse files
committed
pre release 6.0.0
1 parent 48a866d commit 03d75d1

File tree

3 files changed

+27
-17
lines changed

3 files changed

+27
-17
lines changed

CHANGELOG.md

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,46 @@
22

33
### BREAKING CHANGE
44
Some rules were removed from the recommended ruleset and other were promoted. See below:
5+
Rules revision - [#692](https://github.com/protofire/solhint/pull/692)
56

67
#### 🟥 DEMOTED
78

8-
- `payable-fallback`: Outdated due to the introduction of receive(); rarely needed in modern Solidity.
9+
- `payable-fallback`: Outdated due to the introduction of receive(); rarely needed in modern Solidity.
910
<br>
1011

1112
#### ✅ PROMOTED
1213

13-
- `interface-starts-with-i`: Promotes clarity by clearly distinguishing interfaces from contracts.
14-
- `gas-calldata-parameters`: Encourages optimal memory usage for external functions.
15-
- `gas-increment-by-one`: Suggests using ++i style for gas-efficient increments.
16-
- `gas-indexed-events`: Improves event indexing for off-chain systems and reduces gas usage.
17-
- `gas-small-strings`: Recommends cheaper encoding using bytes32 for short strings.
18-
- `gas-strict-inequalities`: Helps avoid subtle off-by-one bugs in range conditions.
19-
- `gas-struct-packing`: Maximizes storage efficiency by suggesting tight struct packing.
20-
- `duplicated-imports`: Prevents redundant imports that bloat the AST and confuse code structure.
21-
- `import-path-check`: Ensures all imported files exist and resolve correctly, avoiding runtime errors.
22-
- `function-max-lines`: Encourages smaller, more readable and maintainable functions.
23-
- `constructor-syntax`: Enforces modern constructor syntax for consistency and clarity.
24-
- `use-natspec`: Promotes proper documentation with NatSpec for better audits and readability.
14+
- `interface-starts-with-i`: Promotes clarity by clearly distinguishing interfaces from contracts.
15+
- `gas-calldata-parameters`: Encourages optimal memory usage for external functions.
16+
- `gas-increment-by-one`: Suggests using ++i style for gas-efficient increments.
17+
- `gas-indexed-events`: Improves event indexing for off-chain systems and reduces gas usage.
18+
- `gas-small-strings`: Recommends cheaper encoding using bytes32 for short strings.
19+
- `gas-strict-inequalities`: Helps avoid subtle off-by-one bugs in range conditions.
20+
- `gas-struct-packing`: Maximizes storage efficiency by suggesting tight struct packing.
21+
- `duplicated-imports`: Prevents redundant imports that bloat the AST and confuse code structure.
22+
- `import-path-check`: Ensures all imported files exist and resolve correctly, avoiding runtime errors.
23+
- `function-max-lines`: Encourages smaller, more readable and maintainable functions.
24+
- `constructor-syntax`: Enforces modern constructor syntax for consistency and clarity.
25+
- `use-natspec`: Promotes proper documentation with NatSpec for better audits and readability.
2526

27+
### Fixed
28+
- `gas-struct-packing` false positives - [#690](https://github.com/protofire/solhint/pull/690)
29+
- `gas-increment-by-one` backward expression - [#691](https://github.com/protofire/solhint/pull/691)
30+
- Typo (thanks to @[MarkFizz77](https://github.com/MarkFizz77))
31+
32+
### Added
33+
- `use-natspec`: Promote the use of natspec and make several checks to enforce it - [#689](https://github.com/protofire/solhint/pull/689)
34+
35+
<br><br>
2636

2737
## [5.2.0] - 2025-06-27
2838
### Fixed
29-
- `imports-order` interference with `no-unused-imports` [#684](https://github.com/protofire/solhint/pull/684)
39+
- `imports-order` interference with `no-unused-imports` - [#684](https://github.com/protofire/solhint/pull/684)
3040

3141
### Added
3242
- Added `cache` flag allowing to skip already evaluated files if no error was thrown and file did not change - [#685](https://github.com/protofire/solhint/pull/685)
3343
- Added multi-directory config support by hierarchy - [#678](https://github.com/protofire/solhint/pull/678)
34-
- Added better error handling on invalid configs - [#683](https://github.com/protofire/solhint/pull/683)
44+
- Added better error handling on invalid configs - [#683](https://github.com/protofire/solhint/pull/683)
3545

3646

3747
Thanks to [@smol-ninja](https://github.com/smol-ninja) - [@PaulRBerg](https://github.com/PaulRBerg) [@lechpzn](https://github.com/lechpzn), [@otc-png](https://github.com/otc-png), [@MamunC0der](https://github.com/MamunC0der), [@kks-code](https://github.com/kks-code), [@RidaMichofi](https://github.com/RidaMichofi)

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM node:20-alpine
22
LABEL maintainer="diego.bale@protofire.io"
3-
ENV VERSION=5.2.0
3+
ENV VERSION=6.0.0
44

55
RUN npm install -g solhint@"$VERSION"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "solhint",
3-
"version": "5.2.0",
3+
"version": "6.0.0",
44
"description": "Solidity Code Linter",
55
"main": "lib/index.js",
66
"keywords": [

0 commit comments

Comments
 (0)