Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable linter for one line #367

Open
huda-kh opened this issue Aug 14, 2024 · 0 comments
Open

Disable linter for one line #367

huda-kh opened this issue Aug 14, 2024 · 0 comments

Comments

@huda-kh
Copy link

huda-kh commented Aug 14, 2024

I have this block of code:

      <%= f.input :freight_country,
                  required: true,
                  wrapper_html: { class: 'form--medium' },
                  input_html: { class: 'country-input' },
                  prompt: "Please select",
                  collection: ISO3166::Country.all.reject { |c| c.alpha2 == 'AU' },
                  value_method: lambda(&:alpha2), # erblint: disable Naming/VariableNumber
                  label_method: ->(country) { country.translations["en"] } %>

and I need to disable Naming/VariableNumber for the line before last but appending # erblint: disable Naming/VariableNumber to it is not doing it. Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant