Inspectopedia
 
2024.3

Suspicious variable/parameter name combination

Warning
Code Style
New
Last modified: 03 December 2024

Reports an assignment or a function call where the name of the target variable or the function parameter does not match the name of the value assigned to it.

Example:

or

Here the inspection guesses that x and y are mixed up.

Specify the names that should not be used together. An error is reported if a parameter name or an assignment target name contains words from one group while the name of the assigned or passed variable contains words from another group.