You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+26-1Lines changed: 26 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,28 @@
1
+
## [5.1.0] - 2025-05-05
2
+
### Added
3
+
- Argument to avoid discord poster - [#646](https://github.com/protofire/solhint/pull/646)
4
+
- Auto-fix for `no-unused-import` - [#648](https://github.com/protofire/solhint/pull/648) (Thanks to [@DenisGorbachev](https://github.com/DenisGorbachev))
5
+
- New Rule: import-path-check - [#657](https://github.com/protofire/solhint/pull/657)
6
+
7
+
8
+
### Updated
9
+
- yml and parser update - [#668](https://github.com/protofire/solhint/pull/668) (Thanks to [@zeevick10](https://github.com/zeevick10))
For making the time of pointing out typos, license update, broken links, unused code, copyright, small reviews, etc. We really appreciate your contributions!
22
+
23
+
<br><br>
24
+
25
+
1
26
## [5.0.5] - 2025-01-16
2
27
### Fixed
3
28
-`gas-custom-errors`[#620](https://github.com/protofire/solhint/pull/620) - Support for Custom Errors inside `require` statements
@@ -143,7 +168,7 @@ Thanks to [@juanpcapurro](https://github.com/juanpcapurro) for providing the cod
143
168
144
169
145
170
### Added
146
-
- Official Docker Image [#524](https://github.com/protofire/solhint/pull/524) (Thanks to [@keypee](https://github.com/keypee90))
171
+
- Official Docker Image [#524](https://github.com/protofire/solhint/pull/524) (Thanks to [@kaypee90](https://github.com/kaypee90))
147
172
- Autofix for `payable-fallback` rule [#528](https://github.com/protofire/solhint/pull/528)
148
173
- Autofix for `quotes` rule [#529](https://github.com/protofire/solhint/pull/529)
149
174
- Autofix for `avoid-suicide` rule [#531](https://github.com/protofire/solhint/pull/531)
@@ -38,7 +38,7 @@ First initialize a configuration file, if you don't have one:
38
38
solhint --init
39
39
```
40
40
41
-
This will create a `.solhint.json` file with the default rules enabled. Then run Solhint with one or more [Globs](https://en.wikipedia.org/wiki/Glob_(programming)) as arguments. For example, to lint all files inside `contracts` directory, you can do:
41
+
This will create a `.solhint.json` file with the recommended rules enabled. Then run Solhint with one or more [Globs](https://en.wikipedia.org/wiki/Glob_(programming)) as arguments. For example, to lint all files inside `contracts` directory, you can do:
42
42
43
43
```sh
44
44
solhint 'contracts/**/*.sol'
@@ -90,7 +90,7 @@ This option currently works on:
90
90
- private-vars-underscore
91
91
- payable-fallback
92
92
- quotes
93
-
- contract-name-camelcase
93
+
- contract-name-capwords
94
94
- avoid-suicide
95
95
96
96
<br><br>
@@ -108,11 +108,12 @@ This file has the following format:
108
108
### Default
109
109
```json
110
110
{
111
-
"extends": "solhint:default"
111
+
"extends": "solhint:recommended"
112
112
}
113
113
```
114
114
### Note
115
115
The `solhint:default` configuration contains only two rules: max-line-length & no-console
116
+
It is now deprecated since version 5.1.0
116
117
<br><br>
117
118
118
119
@@ -139,9 +140,9 @@ additional-tests.sol
139
140
140
141
### Extendable rulesets
141
142
142
-
The default rulesets provided by solhint are the following:
143
+
The rulesets provided by solhint are the following:
143
144
144
-
+ solhint:default
145
+
+ solhint:default (deprecated since version v5.1.0)
145
146
+ solhint:recommended
146
147
147
148
Use one of these as the value for the "extends" property in your configuration file.
@@ -238,7 +239,6 @@ Related documentation you may find [here](https://protofire.github.io/solhint/).
238
239
239
240
## Table of Contents
240
241
241
-
* [Roadmap](ROADMAP.md): The core project's roadmap - what the core team is looking to work on in the near future.
242
242
* [Contributing](docs/contributing.md): The core Solhint team :heart: contributions. This describes how you can contribute to the Solhint Project.
243
243
* [Shareable configs](docs/shareable-configs.md): How to create and share your own configurations.
244
244
* [Writing plugins](docs/writing-plugins.md): How to extend Solhint with your own rules.
0 commit comments