From a82833ddff11797b7c8ff997aa3aade25e11af44 Mon Sep 17 00:00:00 2001 From: Juan Pablo Capurro Date: Wed, 5 Jul 2023 03:02:42 -0300 Subject: [PATCH] test: remove unused imports (#43) * build: add solhint-community node.js dep * build: remove solhint node.js dep * test: remove unused imports --- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- test/token/erc20-normalizer/ERC20Normalizer.t.sol | 2 -- .../compute-scalar/computeScalar.t.sol | 2 -- .../erc20-normalizer/denormalize/denormalize.t.sol | 5 ----- test/token/erc20-normalizer/normalize/normalize.t.sol | 5 ----- test/token/erc20/ERC20.t.sol | 2 -- test/token/erc20/approve/approve.t.sol | 2 -- test/token/erc20/transfer-from/transferFrom.t.sol | 2 -- test/token/erc20/transfer/transfer.t.sol | 2 -- 10 files changed, 6 insertions(+), 28 deletions(-) diff --git a/package.json b/package.json index 66b5316..eb6519a 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "prettier": "^2.8.7", - "solhint": "^3.4.1" + "solhint-community": "^3.5.2" }, "files": [ "src", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 49981ce..9777743 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,9 +8,9 @@ devDependencies: prettier: specifier: ^2.8.7 version: 2.8.7 - solhint: - specifier: ^3.4.1 - version: 3.4.1 + solhint-community: + specifier: ^3.5.2 + version: 3.5.2 packages: @@ -363,8 +363,8 @@ packages: is-fullwidth-code-point: 3.0.0 dev: true - /solhint@3.4.1: - resolution: {integrity: sha512-pzZn2RlZhws1XwvLPVSsxfHrwsteFf5eySOhpAytzXwKQYbTCJV6z8EevYDiSVKMpWrvbKpEtJ055CuEmzp4Xg==} + /solhint-community@3.5.2: + resolution: {integrity: sha512-l3lF2n8mF33p266u5atCSqjT9SyyOBD1qaWrQBAXHNk2xAxmi+pEynIVuTIn6FVD3JiuHRgutjKJcngs8Iolbg==} hasBin: true dependencies: '@solidity-parser/parser': 0.16.0 diff --git a/test/token/erc20-normalizer/ERC20Normalizer.t.sol b/test/token/erc20-normalizer/ERC20Normalizer.t.sol index 5309693..abc0403 100644 --- a/test/token/erc20-normalizer/ERC20Normalizer.t.sol +++ b/test/token/erc20-normalizer/ERC20Normalizer.t.sol @@ -1,8 +1,6 @@ // SPDX-License-Identifier: UNLICENSED pragma solidity >=0.8.19 <0.9.0; -import { IERC20 } from "src/token/erc20/IERC20.sol"; - import { ERC20NormalizerMock } from "../../shared/ERC20NormalizerMock.t.sol"; import { Base_Test } from "../../Base.t.sol"; diff --git a/test/token/erc20-normalizer/compute-scalar/computeScalar.t.sol b/test/token/erc20-normalizer/compute-scalar/computeScalar.t.sol index bf6902b..ed0a47a 100644 --- a/test/token/erc20-normalizer/compute-scalar/computeScalar.t.sol +++ b/test/token/erc20-normalizer/compute-scalar/computeScalar.t.sol @@ -1,9 +1,7 @@ // SPDX-License-Identifier: UNLICENSED pragma solidity >=0.8.19 <0.9.0; -import { IERC20 } from "src/token/erc20/IERC20.sol"; import { ERC20GodMode } from "src/token/erc20/ERC20GodMode.sol"; -import { ERC20Normalizer } from "src/token/erc20/ERC20Normalizer.sol"; import { IERC20Normalizer } from "src/token/erc20/IERC20Normalizer.sol"; import { ERC20Normalizer_Test } from "../ERC20Normalizer.t.sol"; diff --git a/test/token/erc20-normalizer/denormalize/denormalize.t.sol b/test/token/erc20-normalizer/denormalize/denormalize.t.sol index b3f0770..67cb6f0 100644 --- a/test/token/erc20-normalizer/denormalize/denormalize.t.sol +++ b/test/token/erc20-normalizer/denormalize/denormalize.t.sol @@ -1,11 +1,6 @@ // SPDX-License-Identifier: UNLICENSED pragma solidity >=0.8.19 <0.9.0; -import { IERC20 } from "src/token/erc20/IERC20.sol"; -import { ERC20GodMode } from "src/token/erc20/ERC20GodMode.sol"; -import { ERC20Normalizer } from "src/token/erc20/ERC20Normalizer.sol"; -import { IERC20Normalizer } from "src/token/erc20/IERC20Normalizer.sol"; - import { ERC20Normalizer_Test } from "../ERC20Normalizer.t.sol"; contract Denormalize_Test is ERC20Normalizer_Test { diff --git a/test/token/erc20-normalizer/normalize/normalize.t.sol b/test/token/erc20-normalizer/normalize/normalize.t.sol index 5a94daf..edf1b64 100644 --- a/test/token/erc20-normalizer/normalize/normalize.t.sol +++ b/test/token/erc20-normalizer/normalize/normalize.t.sol @@ -1,11 +1,6 @@ // SPDX-License-Identifier: UNLICENSED pragma solidity >=0.8.19 <0.9.0; -import { IERC20 } from "src/token/erc20/IERC20.sol"; -import { ERC20GodMode } from "src/token/erc20/ERC20GodMode.sol"; -import { ERC20Normalizer } from "src/token/erc20/ERC20Normalizer.sol"; -import { IERC20Normalizer } from "src/token/erc20/IERC20Normalizer.sol"; - import { stdError } from "forge-std/StdError.sol"; import { ERC20Normalizer_Test } from "../ERC20Normalizer.t.sol"; diff --git a/test/token/erc20/ERC20.t.sol b/test/token/erc20/ERC20.t.sol index fd39ec1..7315ad3 100644 --- a/test/token/erc20/ERC20.t.sol +++ b/test/token/erc20/ERC20.t.sol @@ -1,8 +1,6 @@ // SPDX-License-Identifier: UNLICENSED pragma solidity >=0.8.19 <0.9.0; -import { ERC20 } from "src/token/erc20/ERC20.sol"; - import { Base_Test } from "../../Base.t.sol"; /// @notice Common logic needed by all {ERC20} tests. diff --git a/test/token/erc20/approve/approve.t.sol b/test/token/erc20/approve/approve.t.sol index e4d17f2..3a3a85a 100644 --- a/test/token/erc20/approve/approve.t.sol +++ b/test/token/erc20/approve/approve.t.sol @@ -1,8 +1,6 @@ // SPDX-License-Identifier: UNLICENSED pragma solidity >=0.8.19 <0.9.0; -import { stdError } from "forge-std/StdError.sol"; - import { IERC20 } from "src/token/erc20/IERC20.sol"; import { ERC20_Test } from "../ERC20.t.sol"; diff --git a/test/token/erc20/transfer-from/transferFrom.t.sol b/test/token/erc20/transfer-from/transferFrom.t.sol index 9db5d43..2f130fc 100644 --- a/test/token/erc20/transfer-from/transferFrom.t.sol +++ b/test/token/erc20/transfer-from/transferFrom.t.sol @@ -1,8 +1,6 @@ // SPDX-License-Identifier: UNLICENSED pragma solidity >=0.8.19 <0.9.0; -import { stdError } from "forge-std/StdError.sol"; - import { IERC20 } from "src/token/erc20/IERC20.sol"; import { ERC20_Test } from "../ERC20.t.sol"; diff --git a/test/token/erc20/transfer/transfer.t.sol b/test/token/erc20/transfer/transfer.t.sol index ab8dcdd..521e11f 100644 --- a/test/token/erc20/transfer/transfer.t.sol +++ b/test/token/erc20/transfer/transfer.t.sol @@ -1,8 +1,6 @@ // SPDX-License-Identifier: UNLICENSED pragma solidity >=0.8.19 <0.9.0; -import { stdError } from "forge-std/StdError.sol"; - import { IERC20 } from "src/token/erc20/IERC20.sol"; import { ERC20_Test } from "../ERC20.t.sol";