Inspectopedia Help

Probable bugs

'super' call with no superclass defined   New in this release

Reports super calls outside of methods or in classes that have no superclass defined.

Assignment expression in conditional   New in this release

Reports usages of assignment expressions in conditionals.

Duplicate key in hash   New in this release

Reports duplicate keys in hashes, method definitions, and calls.

Dynamic constant assignment   New in this release

Reports dynamic constant assignment.

Empty 'else' block   New in this release

Reports empty else blocks.

Empty 'rescue' block   New in this release

Reports empty rescue blocks.

Expression substitution in single-quoted string   New in this release

Reports expression substitutions #{...} in single-quoted strings.

Incorrect 'Hash[...]' call   New in this release

Reports improperly constructed Hash[...] calls.

Incorrect call argument count   New in this release

Reports method calls where: The number of arguments passed to the method doesn't match the number of parameters A required block is missing.

Invalid call to protected/private method   New in this release

Reports invalid calls to protected/private methods.

Mismatched argument type   New in this release

Reports method and yield calls with arguments whose inferred types don't match the parameter's expected type.

Mismatched constant type   New in this release

Reports constant assignments whose inferred types don't match the constant's expected type.

Mismatched global variable type   New in this release

Reports global variable assignments whose inferred types don't match the global variable's expected type.

Mismatched parameter type   New in this release

Reports default method and block parameter assignments whose inferred types don't match the parameter's expected type.

Mismatched return type   New in this release

Reports method and block return values whose inferred types don't match the method's expected return type.

Mismatched variable type   New in this release

Reports instance and class variable assignments whose inferred types don't match the variable's expected type.

Unbalanced brackets   New in this release

Reports blocks of code with unbalanced brackets.

Unexpected argument in method call   New in this release

Reports unexpected parameter values in method calls.

Unresolved reference  

Reports references in the code that cannot be resolved to any declaration (for example, a method reference or a constant reference).

Last modified: 11 September 2024