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

Add Documentation with how to trigger the rubocop error #52

Open
ZASMan opened this issue Jan 8, 2021 · 1 comment
Open

Add Documentation with how to trigger the rubocop error #52

ZASMan opened this issue Jan 8, 2021 · 1 comment

Comments

@ZASMan
Copy link

ZASMan commented Jan 8, 2021

Excuse me, I really appreciate your project, as I need a linter to enforce i18n translations in my views. But can you actually list how to trigger the Rubocop violations? I've installed your gem and added the necessary configuration to the .rubocop.yml added strings with no translations into my view files but it isn't tripping rubocop. Thank you.

@ZASMan ZASMan closed this as completed Jan 8, 2021
@ZASMan ZASMan reopened this Jan 11, 2021
@highb
Copy link
Contributor

highb commented Feb 26, 2021

Hi @ZASMan ! When you say that you added untranslated strings to your view files, are those ERB templates? If that's the case then I don't think the plugin (or Rubocop itself) will detect those issues. I see there is an ERB lint tool that was written as a wrapper around RuboCop that might help you there https://stackoverflow.com/questions/20025178/rubocop-in-html-erb-files .

If you're not using ERB templates, could I get some more details about what you mean by your "view files"? Thanks!

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

2 participants