Inspectopedia Help

Unnecessary qualifier

Reports unnecessary qualifiers within references. Some qualifiers are unnecessary when there are use clauses or namespaces present.

A quick fix is available to remove the unnecessary qualifier.

Example:

use Enumerator::Generator class Example # 'Enumerator::Generator' can be shortened def call: -> Enumerator::Generator end

After the quick fix:

use Enumerator::Generator class Example def call: -> Generator end

Inspection Details

Available in:

Qodana for Ruby 2023.3, RubyMine 2023.3

Plugin:

Ruby, 233.SNAPSHOT

Last modified: 13 July 2023