Root.Redundancy.UnusedImport |
Parent | Index |
Sibling aspects | Clone | UnreachableCode | UnusedVariable |
Unused imports are any kind of import/include that is not needed.
This aspect does not have any sub aspects.
import sys
import os
print('coala is always written with lowercase c')
Redundant imports can cause a performance degrade and make code harder to understand when reading through it. Also it causes unneeded dependencies within your modules. In most programming languages, unused imports may have side effects and that may be a common false positive. However those should be avoided.
Usually, unused imports can simply be removed.