Skip to content

Commit bfa1ab5

Browse files
Merge pull request #736 from protofire/fix-misc-issues
Fix: misc issues
2 parents 548c4d4 + d0ca082 commit bfa1ab5

15 files changed

+262
-426
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ convertLib.sol
66
/coverage/
77
/docs/_site/
88
/docs/Gemfile*
9-
antlr4.jar
109
/docs/.sass-cache/
1110
_temp/
1211
*solhintReport*.*

docs/rules/best-practices/no-unused-private-funcs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ This rule accepts a string option for rule severity. Must be one of "error", "wa
2828
This rule does not have examples.
2929

3030
## Version
31-
This rule was introduced in the latest version.
31+
This rule was introduced in [Solhint 6.0.2](https://github.com/protofire/solhint/blob/v6.0.2)
3232

3333
## Resources
3434
- [Rule source](https://github.com/protofire/solhint/blob/master/lib/rules/best-practices/no-unused-private-funcs.js)

docs/rules/miscellaneous/foundry-no-block-time-number.md

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

4444
## Version
45-
This rule was introduced in the latest version.
45+
This rule was introduced in [Solhint 6.0.2](https://github.com/protofire/solhint/blob/v6.0.2)
4646

4747
## Resources
4848
- [Rule source](https://github.com/protofire/solhint/blob/master/lib/rules/miscellaneous/foundry-no-block-time-number.js)

docs/rules/naming/foundry-test-function-naming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function numberIs42() public {}
7171
```
7272

7373
## Version
74-
This rule was introduced in the latest version.
74+
This rule was introduced in [Solhint 6.0.2](https://github.com/protofire/solhint/blob/v6.0.2)
7575

7676
## Resources
7777
- [Rule source](https://github.com/protofire/solhint/blob/master/lib/rules/naming/foundry-test-function-naming.js)

docs/rules/security/no-immutable-before-declaration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ This rule accepts a string option for rule severity. Must be one of "error", "wa
6666
```
6767

6868
## Version
69-
This rule was introduced in the latest version.
69+
This rule was introduced in [Solhint 6.0.2](https://github.com/protofire/solhint/blob/v6.0.2)
7070

7171
## Resources
7272
- [Rule source](https://github.com/protofire/solhint/blob/master/lib/rules/security/no-immutable-before-declaration.js)

lib/common/ast-printer.js

Lines changed: 0 additions & 31 deletions
This file was deleted.

lib/common/blank-line-counter.js

Lines changed: 0 additions & 43 deletions
This file was deleted.

lib/common/statements-indent-validator.js

Lines changed: 0 additions & 252 deletions
This file was deleted.

lib/config/config-schema.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
const baseConfigProperties = {
2-
rules: { type: 'object' },
3-
excludedFiles: { type: 'array' },
2+
rules: { type: 'object', additionalProperties: true },
3+
excludedFiles: { type: 'array', items: { type: 'string' } },
4+
plugins: { type: 'array', items: { type: 'string' } },
45
extends: { anyOf: [{ type: 'string' }, { type: 'array', items: { type: 'string' } }] },
56
globals: { type: 'object' },
67
env: { type: 'object' },
78
parserOptions: { type: 'object' },
8-
plugins: { type: 'array' },
9+
10+
// Runtime options (CLI / engine)
11+
cache: { type: 'boolean' },
12+
cacheLocation: { type: 'string' },
913
}
1014

1115
const configSchema = {

0 commit comments

Comments
 (0)