Skip to content

Fix uninitialized constant with HamlLint::LinterRegistry

Stan Hu requested to merge sh-fix-linter-registry-haml-try2 into master

The migration pod for the GitLab Helm Chart was failing because of the NameError:

uninitialized constant HamlLint::Linter::NoPlainNodes::LinterRegistry

We now explicitly specify ::HamlLint::LinterRegistry to avoid resolution errors.

Because all files in lib are eager loaded, lib/haml_lint is always loaded, even in production mode. To avoid this, move the directory to haml_lint.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/62125

Edited by Stan Hu

Merge request reports