Skip to content

Commit d6d0efb

Browse files
Merge pull request #732 from protofire/develop
MERGE Develop into Master - v6.0.2
2 parents a9b7a5c + 5815a1d commit d6d0efb

File tree

118 files changed

+2865
-226
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+2865
-226
lines changed

.github/workflows/E2E.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
steps:
2020
- uses: actions/checkout@v5
21-
- uses: actions/setup-node@v4
21+
- uses: actions/setup-node@v6
2222
with:
2323
node-version: ${{ matrix.node }}
2424
cache: 'npm'
@@ -53,7 +53,7 @@ jobs:
5353
run: |
5454
echo "::debug::Debugging enabled"
5555
- uses: actions/checkout@v5
56-
- uses: actions/setup-node@v4
56+
- uses: actions/setup-node@v6
5757
with:
5858
node-version: 18
5959
cache: 'npm'
@@ -91,7 +91,7 @@ jobs:
9191

9292
steps:
9393
- uses: actions/checkout@v5
94-
- uses: actions/setup-node@v4
94+
- uses: actions/setup-node@v6
9595
with:
9696
node-version: 18
9797
cache: 'npm'

.github/workflows/PRE-COMMIT-HOOK-TEST.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
name: Test Hook
2121
steps:
2222
- uses: actions/checkout@v5
23-
- uses: actions/setup-node@v4
23+
- uses: actions/setup-node@v6
2424
with:
2525
node-version: 20
2626
- uses: actions/setup-python@v5

.github/workflows/TESTS.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
steps:
2222
- uses: actions/checkout@v5
23-
- uses: actions/setup-node@v4
23+
- uses: actions/setup-node@v6
2424
with:
2525
node-version: ${{ matrix.node-version }}
2626
cache: 'npm'
@@ -39,7 +39,7 @@ jobs:
3939

4040
steps:
4141
- uses: actions/checkout@v5
42-
- uses: actions/setup-node@v4
42+
- uses: actions/setup-node@v6
4343
with:
4444
node-version: 18
4545
cache: 'npm'
@@ -58,7 +58,7 @@ jobs:
5858

5959
steps:
6060
- uses: actions/checkout@v5
61-
- uses: actions/setup-node@v4
61+
- uses: actions/setup-node@v6
6262
with:
6363
node-version: 18
6464
cache: 'npm'

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1+
## [6.0.2] - 2025-12-17
2+
🛠️ `Fix`: corrected use-natspec enforcement behavior on internal functions
3+
4+
🛠️ `Fix`: misc minor issues and typos. General polish and stability
5+
<br><br>
6+
7+
🆕 `Rule`: added `foundry-no-block` to detect usage of `block.timestamp` and `block.number` in Solidity tests
8+
9+
🆕 `Rule`: added `no-unused-private-functions` to prevent unused private function declarations
10+
11+
🆕 `Rule`: added `no-immutable-before-declaration` to enforce correct immutable declaration order
12+
<br><br>
13+
14+
🧱 `Enhancement`: improvements to `foundry-test-function` rule, including naming and configuration updates
15+
<br><br>
16+
17+
🧰 `Infra`: update GitHub Actions in CI workflows to v5 and v6. Keeps CI aligned with latest ecosystem changes
18+
19+
🧰 `Infra`: bump js-yaml dependency following security recommendations
20+
<br><br>
21+
22+
🧹 `Chore`: stop publishing the test directory to npm packages. Reduces package size and noise
23+
24+
🧹 `Chore`: `foundry-test-functions` is deprecated and will be removed in v7.0.0. Please rename to `foundry-test-function-naming`.
25+
WILL BE REPLACED IN v7
26+
<br><br>
27+
28+
✨🛡️ Kudos to our contributors! 🛡️✨
29+
- [MamunC0der](https://github.com/MamunC0der)
30+
- [@MarkFizz77](https://github.com/MarkFizz77)
31+
- [RidaMichofi](https://github.com/RidaMichofi)
32+
- [Daulox92](https://github.com/Daulox92)
33+
134
## [6.0.1] - 2025-08-22
235

336
🛠️ `Fix`: `no-unused-vars` for modifiers

conf/rulesets/solhint-all.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ module.exports = Object.freeze({
1515
'no-empty-blocks': 'warn',
1616
'no-global-import': 'warn',
1717
'no-unused-import': 'warn',
18+
'no-unused-private-funcs': 'warn',
1819
'no-unused-vars': [
1920
'warn',
2021
{
@@ -67,11 +68,13 @@ module.exports = Object.freeze({
6768
'gas-struct-packing': 'warn',
6869
'comprehensive-interface': 'warn',
6970
'duplicated-imports': 'warn',
71+
'foundry-no-block-time-number': ['warn', ['test', 'tests']],
7072
'import-path-check': ['warn', ['[~dependenciesPath]']],
7173
quotes: ['error', 'double'],
7274
'const-name-snakecase': 'warn',
7375
'contract-name-capwords': 'warn',
7476
'event-name-capwords': 'warn',
77+
'foundry-test-function-naming': ['warn', ['setUp']],
7578
'foundry-test-functions': ['warn', ['setUp']],
7679
'func-name-mixedcase': 'warn',
7780
'func-named-parameters': ['warn', 4],
@@ -117,6 +120,7 @@ module.exports = Object.freeze({
117120
],
118121
'multiple-sends': 'warn',
119122
'no-complex-fallback': 'warn',
123+
'no-immutable-before-declaration': 'warn',
120124
'no-inline-assembly': 'warn',
121125
'not-rely-on-block-hash': 'warn',
122126
'not-rely-on-time': 'warn',

conf/rulesets/solhint-recommended.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ module.exports = Object.freeze({
9797
],
9898
'multiple-sends': 'warn',
9999
'no-complex-fallback': 'warn',
100+
'no-immutable-before-declaration': 'warn',
100101
'no-inline-assembly': 'warn',
101102
'not-rely-on-block-hash': 'warn',
102103
reentrancy: 'warn',

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=6.0.1
3+
ENV VERSION=6.0.2
44

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

0 commit comments

Comments
 (0)