protofire/solhint

No Unused Imports Rule false positives

0xCourtney opened this issue · 1 comments

Applying the no-unused-import rule shows some false positives, specifically for the cases where the import is:

  1. A constant
  2. only used with @inheritdoc
  3. only used as a type in a mapping or using...for

solhint-community/solhint-community#21
this was fixed just yesterday in solhint-community, and released in 3.5.2

If you're still experiencing issues with that version, please report it in the solhint-community repo, preferrably with code samples

@inheritdoc-only usages I think will remain a false positive in the short term, because AFAIK the parser is not aware of anything happening inside comments