Skip to content

Commit 7c48b93

Browse files
authored
chore: fix solhint (sablier-labs#1352)
1 parent fce075d commit 7c48b93

File tree

17 files changed

+156
-128
lines changed

17 files changed

+156
-128
lines changed

.solhint.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"gas-small-strings": "off",
1212
"gas-strict-inequalities": "off",
1313
"gas-struct-packing": "off",
14+
"imports-order": "warn",
1415
"import-path-check": "off",
1516
"max-line-length": ["error", 128],
1617
"max-states-count": ["warn", 20],

airdrops/bun.lock

Lines changed: 40 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

airdrops/tests/.solhint.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
{
2+
"extends": "solhint:recommended",
23
"rules": {
34
"avoid-low-level-calls": "off",
5+
"compiler-version": ["error", ">=0.8.22"],
46
"contract-name-capwords": "off",
57
"func-name-mixedcase": "off",
8+
"func-visibility": ["error", { "ignoreConstructors": true }],
9+
"function-max-lines": "off",
610
"gas-calldata-parameters": "off",
711
"gas-custom-errors": "off",
812
"gas-increment-by-one": "off",
13+
"gas-small-strings": "off",
14+
"gas-strict-inequalities": "off",
15+
"imports-order": "warn",
916
"no-empty-blocks": "off",
1017
"one-contract-per-file": "off",
18+
"use-natspec": "off",
1119
"var-name-mixedcase": "off"
1220
}
1321
}

flow/bun.lock

Lines changed: 30 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flow/tests/.solhint.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
{
2+
"extends": "solhint:recommended",
23
"rules": {
34
"avoid-low-level-calls": "off",
5+
"compiler-version": ["error", ">=0.8.22"],
46
"contract-name-capwords": "off",
7+
"func-visibility": ["error", { "ignoreConstructors": true }],
8+
"function-max-lines": "off",
59
"func-name-mixedcase": "off",
610
"gas-calldata-parameters": "off",
711
"gas-custom-errors": "off",
812
"gas-increment-by-one": "off",
13+
"gas-small-strings": "off",
14+
"gas-strict-inequalities": "off",
15+
"gas-struct-packing": "off",
16+
"imports-order": "warn",
917
"no-empty-blocks": "off",
10-
"one-contract-per-file": "off"
18+
"one-contract-per-file": "off",
19+
"use-natspec": "off"
1120
}
1221
}

flow/tests/fork/Flow.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ pragma solidity >=0.8.22;
33

44
import { IERC4906 } from "@openzeppelin/contracts/interfaces/IERC4906.sol";
55
import { IERC20Metadata } from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
6-
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
76
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
7+
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
88
import { IERC721 } from "@openzeppelin/contracts/token/ERC721/IERC721.sol";
99
import { ud21x18, UD21x18 } from "@prb/math/src/UD21x18.sol";
1010

flow/tests/fork/Fork.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
pragma solidity >=0.8.22;
33

44
import { IERC20Metadata } from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
5-
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
65
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
6+
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
77
import { ISablierFlow } from "src/interfaces/ISablierFlow.sol";
88

99
import { Base_Test } from "../Base.t.sol";

lockup/bun.lock

Lines changed: 30 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lockup/tests/.solhint.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
11
{
2+
"extends": "solhint:recommended",
23
"rules": {
4+
"avoid-low-level-calls": "off",
35
"const-name-snakecase": "off",
6+
"compiler-version": ["error", ">=0.8.22"],
47
"contract-name-capwords": "off",
8+
"func-visibility": ["error", { "ignoreConstructors": true }],
9+
"function-max-lines": "off",
510
"func-name-mixedcase": "off",
611
"gas-calldata-parameters": "off",
712
"gas-custom-errors": "off",
13+
"gas-increment-by-one": "off",
14+
"gas-small-strings": "off",
15+
"gas-strict-inequalities": "off",
16+
"gas-struct-packing": "off",
17+
"imports-order": "warn",
18+
"no-empty-blocks": "off",
819
"one-contract-per-file": "off",
9-
"no-console": "off"
20+
"no-console": "off",
21+
"use-natspec": "off"
1022
}
1123
}

utils/.solhint.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
{
2+
"extends": "solhint:recommended",
23
"rules": {
4+
"avoid-low-level-calls": "off",
35
"code-complexity": "off",
6+
"compiler-version": ["error", ">=0.8.22"],
47
"contract-name-capwords": "off",
8+
"func-visibility": ["error", { "ignoreConstructors": true }],
9+
"function-max-lines": "off",
510
"func-name-mixedcase": "off",
611
"gas-custom-errors": "off",
7-
"one-contract-per-file": "off"
12+
"gas-indexed-events": "off",
13+
"gas-small-strings": "off",
14+
"gas-strict-inequalities": "off",
15+
"imports-order": "warn",
16+
"no-empty-blocks": "off",
17+
"one-contract-per-file": "off",
18+
"use-natspec": "off"
819
}
920
}

0 commit comments

Comments
 (0)