Skip to content

Commit c3f1dde

Browse files
authored
feat: solhint test config (#60)
1 parent 1de0ab8 commit c3f1dde

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.solhint.tests.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"extends": "solhint:recommended",
3+
"rules": {
4+
"compiler-version": ["off"],
5+
"constructor-syntax": "warn",
6+
"quotes": ["error", "single"],
7+
"func-visibility": ["warn", { "ignoreConstructors": true }],
8+
"not-rely-on-time": "off",
9+
"func-name-mixedcase": "off",
10+
"var-name-mixedcase": "off",
11+
"const-name-snakecase": "off",
12+
"no-inline-assembly": "off",
13+
"no-empty-blocks": "off",
14+
"definition-name-capwords": "off",
15+
"named-parameters-function": "off",
16+
"no-global-import": "off",
17+
"max-states-count": "off",
18+
"private-vars-leading-underscore": ["warn", { "strict": false }],
19+
"ordering": "warn",
20+
"immutable-name-snakecase": "warn",
21+
"avoid-low-level-calls": "off"
22+
}
23+
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"lint:check": "yarn lint:sol-tests && yarn lint:sol-logic && forge fmt --check",
2020
"lint:fix": "sort-package-json && forge fmt && yarn lint:sol-tests --fix && yarn lint:sol-logic --fix",
2121
"lint:sol-logic": "solhint -c .solhint.json 'solidity/contracts/**/*.sol' 'solidity/interfaces/**/*.sol'",
22-
"lint:sol-tests": "solhint 'solidity/test/**/*.sol'",
22+
"lint:sol-tests": "solhint -c .solhint.tests.json 'solidity/test/**/*.sol'",
2323
"prepare": "husky install",
2424
"test": "forge test -vvv",
2525
"test:integration": "forge test --match-contract Integration -vvv",

0 commit comments

Comments
 (0)