optimize and make sure unused-imports is accurate
Open
bug
- Dominant language
- Python
- Stars
- 6.4k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
It was added in https://github.com/crytic/slither/pull/2392 but it is really slow and has some edge cases e.g.
this is wrong
```
The following unused import(s) in src/universal/CrossDomainMessenger.sol should be removed:
-import { Initializable } from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; (src/universal/CrossDomainMessenger.sol#4)
```
`slither contracts.zip --detect unused-import `
[contracts.zip](https://github.com/user-attachments/files/15597731/contracts.zip)
Contributor guide
Assessment
This issue has not been assessed yet.