Inspectopedia
 
2024.3

Redeclared names without usages

Warning
New
Last modified: 03 December 2024

Reports unconditional redeclarations of names without being used in between.

Example:

It applies to function and class declarations, and top-level assignments.

When the warning is shown, you can try a recommended action, for example, you might be prompted to rename the variable.