Skip to content

Commit b8b2bde

Browse files
authored
[ETHEREUM-CONTRACTS] updated solhint to v6 (#2128)
* updated solhint to v6 * Remove duplicate import of ISuperfluidToken
1 parent 6f9f213 commit b8b2bde

File tree

14 files changed

+105
-19
lines changed

14 files changed

+105
-19
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/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ All notable changes to the ethereum-contracts will be documented in this file.
33

44
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
55

6+
## [UNRELEASED]
7+
8+
### Changed
9+
10+
- Update solhint to v6.
11+
612
## [v1.14.1]
713

814
### Added

packages/ethereum-contracts/contracts/agreements/AgreementLibrary.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
ISuperApp,
88
SuperAppDefinitions
99
} from "../interfaces/superfluid/ISuperfluid.sol";
10-
import { ISuperfluidToken } from "../interfaces/superfluid/ISuperfluidToken.sol";
1110

1211
import { SafeCast } from "@openzeppelin-v5/contracts/utils/math/SafeCast.sol";
1312

0 commit comments

Comments
 (0)