Inspectopedia
 
2024.3

Imported package name as a name identifier

Warning
Code Style
New
Last modified: 03 December 2024

Reports declarations of variables, arguments or functions that overlap with the used import.

While legal, such declarations will make using the package exported identifiers impossible after the declaration or create confusion when reading the code.

Example:

Variable names fmt and iio clash with names of import packages. Not to confuse them later in code, it is better to rename these variables.