Skip to content

Load constant Foo::Bar when Bar is seen inside Foo.

Martin Vidner requested to merge mvidner:load-unqualified-constants into master

If we have a definition with

    RubyLint.registry.register('Foo::Bar')

and code like

    module Foo
      Bar.baz
    end

then ruby-lint should load "Foo::Bar" first, only then try "Bar".

Merge request reports