Skip to content

Commit

Permalink
disable unused import (#2540)
Browse files Browse the repository at this point in the history
* disable unused import

* fmt
  • Loading branch information
0xalpharush authored Aug 23, 2024
1 parent 588ef3d commit d29f41d
Show file tree
Hide file tree
Showing 2 changed files with 187 additions and 186 deletions.
3 changes: 2 additions & 1 deletion slither/detectors/all_detectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,5 @@
from .statements.tautological_compare import TautologicalCompare
from .statements.return_bomb import ReturnBomb
from .functions.out_of_order_retryable import OutOfOrderRetryable
from .statements.unused_import import UnusedImport

# from .statements.unused_import import UnusedImport
370 changes: 185 additions & 185 deletions tests/e2e/detectors/test_detectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -1714,191 +1714,191 @@ def id_test(test_item: Test):
"out_of_order_retryable.sol",
"0.8.20",
),
Test(
all_detectors.UnusedImport,
"ConstantContractLevelUsedInContractTest.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"ConstantContractLevelUsedTopLevelTest.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"ConstantTopLevelUsedInContractTest.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"ConstantTopLevelUsedTopLevelTest.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"ContractUsedInContractTest1.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"ContractUsedInContractTest2.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"ContractUsedTopLevelTest.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"CustomErrorTopLevelUsedInContractTest.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"CustomEventContractLevelUsedInContractTest.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"CustomEventContractLevelUsedTopLevelTest.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"CustomTypeContractLevelUsedInContractTest1.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"CustomTypeContractLevelUsedInContractTest2.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"CustomTypeContractLevelUsedInContractTest3.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"CustomTypeContractLevelUsedInContractTest4.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"CustomTypeContractLevelUsedTopLevelTest1.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"CustomTypeContractLevelUsedTopLevelTest2.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"CustomTypeTopLevelUsedInContractTest1.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"CustomTypeTopLevelUsedInContractTest2.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"CustomTypeTopLevelUsedInContractTest3.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"CustomTypeTopLevelUsedInContractTest4.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"CustomTypeTopLevelUsedTopLevelTest1.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"CustomTypeTopLevelUsedTopLevelTest2.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"EnumContractLevelUsedInContractTest.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"EnumContractLevelUsedTopLevelTest.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"EnumTopLevelUsedInContractTest.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"EnumTopLevelUsedTopLevelTest.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"FunctionContractLevelUsedInContractTest.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"FunctionContractLevelUsedTopLevelTest.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"FunctionTopLevelUsedInContractTest.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"FunctionTopLevelUsedTopLevelTest.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"LibraryUsedInContractTest.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"LibraryUsedTopLevelTest.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"StructContractLevelUsedInContractTest.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"StructContractLevelUsedTopLevelTest.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"StructTopLevelUsedInContractTest.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"StructTopLevelUsedTopLevelTest.sol",
"0.8.16",
),
Test(
all_detectors.UnusedImport,
"C.sol",
"0.8.16",
),
# Test(
# all_detectors.UnusedImport,
# "ConstantContractLevelUsedInContractTest.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "ConstantContractLevelUsedTopLevelTest.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "ConstantTopLevelUsedInContractTest.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "ConstantTopLevelUsedTopLevelTest.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "ContractUsedInContractTest1.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "ContractUsedInContractTest2.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "ContractUsedTopLevelTest.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "CustomErrorTopLevelUsedInContractTest.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "CustomEventContractLevelUsedInContractTest.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "CustomEventContractLevelUsedTopLevelTest.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "CustomTypeContractLevelUsedInContractTest1.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "CustomTypeContractLevelUsedInContractTest2.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "CustomTypeContractLevelUsedInContractTest3.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "CustomTypeContractLevelUsedInContractTest4.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "CustomTypeContractLevelUsedTopLevelTest1.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "CustomTypeContractLevelUsedTopLevelTest2.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "CustomTypeTopLevelUsedInContractTest1.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "CustomTypeTopLevelUsedInContractTest2.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "CustomTypeTopLevelUsedInContractTest3.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "CustomTypeTopLevelUsedInContractTest4.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "CustomTypeTopLevelUsedTopLevelTest1.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "CustomTypeTopLevelUsedTopLevelTest2.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "EnumContractLevelUsedInContractTest.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "EnumContractLevelUsedTopLevelTest.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "EnumTopLevelUsedInContractTest.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "EnumTopLevelUsedTopLevelTest.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "FunctionContractLevelUsedInContractTest.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "FunctionContractLevelUsedTopLevelTest.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "FunctionTopLevelUsedInContractTest.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "FunctionTopLevelUsedTopLevelTest.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "LibraryUsedInContractTest.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "LibraryUsedTopLevelTest.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "StructContractLevelUsedInContractTest.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "StructContractLevelUsedTopLevelTest.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "StructTopLevelUsedInContractTest.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "StructTopLevelUsedTopLevelTest.sol",
# "0.8.16",
# ),
# Test(
# all_detectors.UnusedImport,
# "C.sol",
# "0.8.16",
# ),
]

GENERIC_PATH = "/GENERIC_PATH"
Expand Down

0 comments on commit d29f41d

Please sign in to comment.