AtomLinter / linter-haml

Atom linter plugin for HAML, using haml-lint
4 stars 8 forks source link

Set custom rubocop config location #118

Closed ghost closed 7 years ago

ghost commented 8 years ago

I'm trying to enforce two different configurations for a single cop (one for haml, the other for ruby).

It seems like the only way to do this is to specify a separate rubocop.yml for haml-lint, which works via the HAML_LINT_RUBOCOP_CONF environment variable.

How can I pass this env var from linter-haml?

Arcanemagus commented 7 years ago

Atom's environment is inherited from the place where it is launched, you should be able to just launch Atom from a CLI where that is defined with atom . and I think it will enhance the environment in that new window for you, if that doesn't work then close all instances of Atom, and then launch from the CLI and it should inherit that.