Inspectopedia 2024.3 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.

Locating this inspection

By ID

Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.

RubyResolve
Via Settings dialog

Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.

Settings or Preferences | Editor | Inspections | Ruby | Probable bugs

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.3, RubyMine 2024.3,

Can be installed with plugin:

Ruby, 243.23135

Last modified: 03 December 2024