Skip to content

Commit b86aa73

Browse files
committed
updated solhint to v6
1 parent 6f9f213 commit b86aa73

File tree

12 files changed

+99
-18
lines changed

12 files changed

+99
-18
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,6 @@ package-lock.json
3030
# echidna litters
3131
crytic-export
3232
corpus
33+
34+
/broadcast
35+
/.direnv

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ For technical document, references and tutorials, etc, refer to the
5757
<a href="https://www.npmjs.com/package/@superfluid-finance/ethereum-contracts" target="_blank">
5858
<img alt="Version" src="https://img.shields.io/npm/v/@superfluid-finance/ethereum-contracts.svg">
5959
</a>
60-
<a href="https://codecov.io/gh/superfluid-finance/protocol-monorepo/tree/dev/packages/ethereum-contracts">
60+
<a href="https://codecov.io/gh/superfluid-org/protocol-monorepo/tree/dev/packages/ethereum-contracts">
6161
<img src="https://codecov.io/gh/superfluid-finance/protocol-monorepo/branch/dev/graph/badge.svg?token=LJW5NDGEJ9&flag=ethereum-contracts"/>
6262
</a>
6363
<a href="#" target="_blank">

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
gnupg
9393
];
9494

95-
# minimem development shell
95+
# minimum development shell
9696
minimumDevInputs = commonDevInputs ++ ethDevInputs ++ defaultNodeDevInputs;
9797

9898
# additional tooling for whitehat hackers

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"nyc": "^17.0.0",
3434
"prettier": "^3.3.3",
3535
"prettier-eslint": "^16.3.0",
36-
"solhint": "^5.0.3",
36+
"solhint": "^6.0.2",
3737
"syncpack": "^13.0.0",
3838
"truffle": "^5.11.5",
3939
"ts-node": "^10.9.2",

packages/automation-contracts/autowrap/.solhint.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@
1414
"constructor-syntax": "error",
1515
"func-visibility": ["error", { "ignoreConstructors": true }],
1616
"quotes": ["error", "double"],
17-
"max-line-length": ["error", 120]
17+
"max-line-length": ["error", 120],
18+
"use-natspec": "off",
19+
"import-path-check": "off",
20+
"gas-indexed-events": "off",
21+
"gas-struct-packing": "off",
22+
"gas-small-strings": "off",
23+
"gas-increment-by-one": "off",
24+
"gas-strict-inequalities": "off",
25+
"gas-calldata-parameters": "off",
26+
"function-max-lines": "off",
27+
"contract-name-capwords": "off"
1828
}
1929
}

packages/automation-contracts/scheduler/.solhint.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@
1414
"constructor-syntax": "error",
1515
"func-visibility": ["error", { "ignoreConstructors": true }],
1616
"quotes": ["error", "double"],
17-
"max-line-length": ["error", 120]
17+
"max-line-length": ["error", 120],
18+
"use-natspec": "off",
19+
"import-path-check": "off",
20+
"gas-indexed-events": "off",
21+
"gas-struct-packing": "off",
22+
"gas-small-strings": "off",
23+
"gas-increment-by-one": "off",
24+
"gas-strict-inequalities": "off",
25+
"gas-calldata-parameters": "off",
26+
"function-max-lines": "off",
27+
"contract-name-capwords": "off"
1828
}
1929
}

packages/ethereum-contracts/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@
1313
/packages
1414
/testing-benchmark.json
1515
/broadcast
16+
17+
/addrs

packages/ethereum-contracts/.solhint.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@
1616
"constructor-syntax": "error",
1717
"func-visibility": ["error", { "ignoreConstructors": true }],
1818
"quotes": ["error", "double"],
19-
"max-line-length": ["error", 120]
19+
"max-line-length": ["error", 120],
20+
"use-natspec": "off",
21+
"import-path-check": "off",
22+
"gas-indexed-events": "off",
23+
"gas-struct-packing": "off",
24+
"gas-small-strings": "off",
25+
"gas-increment-by-one": "off",
26+
"gas-strict-inequalities": "off",
27+
"gas-calldata-parameters": "off",
28+
"function-max-lines": "off",
29+
"contract-name-capwords": "off"
2030
}
2131
}

packages/ethereum-contracts/test/test-solc-compatibility.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fi
3131
# from here - don't forget to add 0x to our generated sha256
3232

3333
# workaround to make solc to find OZ library
34-
ln -s ../../lib/openzeppelin-contracts @openzeppelin-v5
34+
ln -sf ../../lib/openzeppelin-contracts @openzeppelin-v5
3535

3636
# verify they are compatible with the minimum version of the SOLC we support
3737
find contracts/{interfaces/,apps/} -name '*.sol' | while read i;do

packages/hot-fuzz/.solhint.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"no-unused-import": "off",
99
"max-states-count": "off",
1010
"no-inline-assembly": "off",
11-
"mark-callable-contracts": "off",
1211
"gas-custom-errors": "off",
1312
"one-contract-per-file": "off",
1413
"max-line-length": ["error", 120],
@@ -17,6 +16,16 @@
1716
"private-vars-leading-underscore": "off",
1817
"reason-string": ["error", { "maxLength": 64 } ],
1918
"compiler-version": ["off"],
20-
"func-visibility" : ["error", { "ignoreConstructors": true }]
19+
"func-visibility" : ["error", { "ignoreConstructors": true }],
20+
"use-natspec": "off",
21+
"import-path-check": "off",
22+
"gas-indexed-events": "off",
23+
"gas-struct-packing": "off",
24+
"gas-small-strings": "off",
25+
"gas-increment-by-one": "off",
26+
"gas-strict-inequalities": "off",
27+
"gas-calldata-parameters": "off",
28+
"function-max-lines": "off",
29+
"contract-name-capwords": "off"
2130
}
2231
}

0 commit comments

Comments
 (0)