Inspectopedia Help

Unresolved reference

Reports references in the code that cannot be resolved to any declaration (for example, a method reference or a constant reference). Unresolved references often occur because of typos and can lead to runtime errors: NoMethodError, NameError, and so on.

When looking for a declaration, the receiver type (explicit or typed, resolve) is checked first. If there is no matching declaration found on the receiver, any matching declaration from the project (implicit or text-based, resolve) is accepted.

By default, a warning arises when there are no matching declarations irrespective of the receiver, i.e. implicit resolve fails.

Use the Report unresolved references on typed receivers checkbox to show warnings when there are no matching declarations on the receiver.

Inspection options

Here you can find the description of settings available for the Unresolved reference inspection, and the reference of their default values.

Report unresolved references on typed receivers

Not selected

Inspection Details

By default bundled with:

Qodana for Ruby 2024.1, RubyMine 2024.1,

Can be installed with plugin:

Ruby, 241.SNAPSHOT

Last modified: 29 April 2024