Skip to content

Commit 7fd122b

Browse files
author
dbale-altoros
committed
fix: minor typos
1 parent 43d5045 commit 7fd122b

23 files changed

+25
-25
lines changed

conf/rulesets/solhint-all.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ module.exports = Object.freeze({
5050
immutablesAsConstants: true,
5151
},
5252
],
53-
'imports-order': 'warn',
5453
'modifier-name-mixedcase': 'warn',
5554
'named-parameters-mapping': 'warn',
5655
'private-vars-leading-underscore': [
@@ -62,6 +61,7 @@ module.exports = Object.freeze({
6261
'use-forbidden-name': 'warn',
6362
'var-name-mixedcase': 'warn',
6463
'imports-on-top': 'warn',
64+
'imports-order': 'warn',
6565
ordering: 'warn',
6666
'visibility-modifier-order': 'warn',
6767
'avoid-call-value': 'warn',

docs/rules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ title: "Rule Index of Solhint"
3636
| [func-named-parameters](./rules/naming/func-named-parameters.md) | Enforce named parameters for function calls with 4 or more arguments. This rule may have some false positives | | |
3737
| [func-param-name-mixedcase](./rules/naming/func-param-name-mixedcase.md) | Function param name must be in mixedCase. | | |
3838
| [immutable-vars-naming](./rules/naming/immutable-vars-naming.md) | Check Immutable variables. Capitalized SNAKE_CASE or mixedCase depending on configuration. | $~~~~~~~~$✔️ | |
39-
| [imports-order](./rules/naming/imports-order.md) | Order the imports of the contract to follow a certain hierarchy (read "Notes section") | | |
4039
| [modifier-name-mixedcase](./rules/naming/modifier-name-mixedcase.md) | Modifier name must be in mixedCase. | | |
4140
| [named-parameters-mapping](./rules/naming/named-parameters-mapping.md) | Solidity v0.8.18 introduced named parameters on the mappings definition. | | |
4241
| [private-vars-leading-underscore](./rules/naming/private-vars-leading-underscore.md) | Non-external functions and state variables should start with a single underscore. Others, shouldn't | | |
4342
| [use-forbidden-name](./rules/naming/use-forbidden-name.md) | Avoid to use letters 'I', 'l', 'O' as identifiers. | $~~~~~~~~$✔️ | |
4443
| [var-name-mixedcase](./rules/naming/var-name-mixedcase.md) | Variable names must be in mixedCase. (Does not check IMMUTABLES, use immutable-vars-naming) | $~~~~~~~~$✔️ | |
4544
| [func-order](./rules/order/func-order.md) | Function order is incorrect. | | $~~~~~~~$✔️ |
4645
| [imports-on-top](./rules/order/imports-on-top.md) | Import statements must be on top. | $~~~~~~~~$✔️ | |
46+
| [imports-order](./rules/naming/imports-order.md) | Order the imports of the contract to follow a certain hierarchy (read "Notes section") | | |
4747
| [ordering](./rules/order/ordering.md) | Check order of elements in file and inside each contract, according to the style guide. | | |
4848
| [visibility-modifier-order](./rules/order/visibility-modifier-order.md) | Visibility modifier must be first in list of modifiers. | $~~~~~~~~$✔️ | |
4949

docs/rules/best-practices/code-complexity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ while (d > e) { }
6767
```
6868

6969
## Version
70-
This rule is introduced in the latest version.
70+
This rule was introduced in [Solhint 5.0.4](https://github.com/protofire/solhint/blob/v5.0.4)
7171

7272
## Resources
7373
- [Rule source](https://github.com/protofire/solhint/blob/master/lib/rules/best-practices/code-complexity.js)

docs/rules/best-practices/explicit-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ uint public variableName = uint256(5)
7777
```
7878

7979
## Version
80-
This rule is introduced in the latest version.
80+
This rule was introduced in [Solhint 5.0.4](https://github.com/protofire/solhint/blob/v5.0.4)
8181

8282
## Resources
8383
- [Rule source](https://github.com/protofire/solhint/blob/master/lib/rules/best-practices/explicit-types.js)

docs/rules/best-practices/function-max-lines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This rule accepts an array of options:
3434
This rule does not have examples.
3535

3636
## Version
37-
This rule is introduced in the latest version.
37+
This rule was introduced in [Solhint 5.0.4](https://github.com/protofire/solhint/blob/v5.0.4)
3838

3939
## Resources
4040
- [Rule source](https://github.com/protofire/solhint/blob/master/lib/rules/best-practices/function-max-lines.js)

docs/rules/best-practices/max-line-length.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This rule accepts an array of options:
3636
This rule does not have examples.
3737

3838
## Version
39-
This rule is introduced in the latest version.
39+
This rule was introduced in [Solhint 5.0.4](https://github.com/protofire/solhint/blob/v5.0.4)
4040

4141
## Resources
4242
- [Rule source](https://github.com/protofire/solhint/blob/master/lib/rules/best-practices/max-line-length.js)

docs/rules/best-practices/max-states-count.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ This rule accepts an array of options:
9999
```
100100

101101
## Version
102-
This rule is introduced in the latest version.
102+
This rule was introduced in [Solhint 5.0.4](https://github.com/protofire/solhint/blob/v5.0.4)
103103

104104
## Resources
105105
- [Rule source](https://github.com/protofire/solhint/blob/master/lib/rules/best-practices/max-states-count.js)

docs/rules/best-practices/no-console.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ import "forge-std/consoleN.sol"
5353
```
5454

5555
## Version
56-
This rule is introduced in the latest version.
56+
This rule was introduced in [Solhint 5.0.4](https://github.com/protofire/solhint/blob/v5.0.4)
5757

5858
## Resources
5959
- [Rule source](https://github.com/protofire/solhint/blob/master/lib/rules/best-practices/no-console.js)

docs/rules/best-practices/no-empty-blocks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ constructor () { }
6565
```
6666

6767
## Version
68-
This rule is introduced in the latest version.
68+
This rule was introduced in [Solhint 5.0.4](https://github.com/protofire/solhint/blob/v5.0.4)
6969

7070
## Resources
7171
- [Rule source](https://github.com/protofire/solhint/blob/master/lib/rules/best-practices/no-empty-blocks.js)

docs/rules/best-practices/no-global-import.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ import "foo.sol"
6363
```
6464

6565
## Version
66-
This rule is introduced in the latest version.
66+
This rule was introduced in [Solhint 5.0.4](https://github.com/protofire/solhint/blob/v5.0.4)
6767

6868
## Resources
6969
- [Rule source](https://github.com/protofire/solhint/blob/master/lib/rules/best-practices/no-global-import.js)

0 commit comments

Comments
 (0)