Skip to content

Commit 65e07a7

Browse files
Merge pull request #702 from protofire/fix/minor-issues
fix: minor issues
2 parents e34274b + 62063fb commit 65e07a7

File tree

10 files changed

+11
-8
lines changed

10 files changed

+11
-8
lines changed

docs/rules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ title: "Rule Index of Solhint"
4545
| [use-forbidden-name](./rules/naming/use-forbidden-name.md) | Avoid to use letters 'I', 'l', 'O' as identifiers. | $~~~~~~~~$✔️ | |
4646
| [var-name-mixedcase](./rules/naming/var-name-mixedcase.md) | Variable names must be in mixedCase. (Does not check IMMUTABLES nor CONSTANTS (use inherent rules for that) | $~~~~~~~~$✔️ | |
4747
| [imports-on-top](./rules/order/imports-on-top.md) | Import statements must be on top. | $~~~~~~~~$✔️ | |
48-
| [imports-order](./rules/naming/imports-order.md) | Order the imports of the contract to follow a certain hierarchy (read "Notes section") | | |
48+
| [imports-order](./rules/order/imports-order.md) | Order the imports of the contract to follow a certain hierarchy (read "Notes section") | | |
4949
| [ordering](./rules/order/ordering.md) | Check order of elements in file and inside each contract, according to the style guide | | |
5050
| [visibility-modifier-order](./rules/order/visibility-modifier-order.md) | Visibility modifier must be first in list of modifiers. | $~~~~~~~~$✔️ | |
5151

docs/rules/best-practices/use-natspec.md

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

135135
## Version
136-
This rule was introduced in the latest version.
136+
This rule was introduced in [Solhint 6.0.0](https://github.com/protofire/solhint/blob/v6.0.0)
137137

138138
## Resources
139139
- [Rule source](https://github.com/protofire/solhint/blob/master/lib/rules/best-practices/use-natspec.js)

docs/rules/miscellaneous/quotes.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
```
3737

3838
### Notes
39-
- This rule allows to put a double quote inside single quote string and viceversa
39+
- This rule allows to put a double quote inside single quote string and vice versa
4040

4141
## Examples
4242
### 👍 Examples of **correct** code for this rule
File renamed without changes.

lib/rules/best-practices/explicit-types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class ExplicitTypesChecker extends BaseChecker {
8484
(config && config.getStringFromArray(ruleId, DEFAULT_OPTION)) || DEFAULT_OPTION
8585
this.isExplicit = this.configOption === 'explicit'
8686

87-
// if explicit, it will search for implicit and viceversa
87+
// if explicit, it will search for implicit and vice versa
8888
if (this.isExplicit) {
8989
typesToSearch = IMPLICIT_TYPES
9090
} else {

lib/rules/miscellaneous/quotes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const meta = {
5656
},
5757
notes: [
5858
{
59-
note: 'This rule allows to put a double quote inside single quote string and viceversa',
59+
note: 'This rule allows to put a double quote inside single quote string and vice versa',
6060
},
6161
],
6262
},

lib/rules/order/imports-order.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const DEFAULT_SEVERITY = 'warn'
55

66
const ruleId = 'imports-order'
77
const meta = {
8-
type: 'naming',
8+
type: 'order',
99

1010
docs: {
1111
description: `Order the imports of the contract to follow a certain hierarchy (read "Notes section")`,

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": "6.0.0",
3+
"version": "6.0.1",
44
"description": "Solidity Code Linter",
55
"main": "lib/index.js",
66
"keywords": [
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// No unit tests for this rule
2+
// Test are done as E2E
3+
// e2e/autofix-test.js ==> autofix rule: imports-order

test/rules/miscellaneous/quotes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ describe('Linter - quotes', () => {
9292
assertErrorCount(reports[0], 1)
9393
})
9494

95-
describe('Double quotes inside single and viceversa', () => {
95+
describe('Double quotes inside single and vice versa', () => {
9696
it('should not raise error when configured as single and there are double quotes inside', function test() {
9797
const code = contractWith('string private constant STR = \'You shall "pass" !\';')
9898

0 commit comments

Comments
 (0)