-
Notifications
You must be signed in to change notification settings - Fork 53
Rubocop being run against erbs #48
Comments
I also have this Problem but I'm not sure which update introduced it. |
Have this as well. Is it possible to work around until a fix is made available? |
A workaround is to switch the language of the file to |
seems to be an problem with the language-ruby plugin. |
This comment has been minimized.
This comment has been minimized.
As mentioned over in AtomLinter/linter-ruby#26 this is a bug in I'm marking this as closed since this isn't an issue that can or should be fixed here. |
Filed an issue over there as it seems nobody had bothered to yet 😉. |
@Arcanemagus could this issue be opened again until it's fixed? It seems the requested scope changes were made in atom/language-ruby#114, but the linter still attempts to run against .html.erb files |
@rutgerfarry This issue has been fixed since Atom v1.4.0-beta0. If you are still experiencing this can you file a new issue with the scopes you are seeing when you run |
Previously, due to an issue with Rubocop we had to manually exclude *.html.erb files from linting. That's been fixed now so we can remove this exclusion. AtomLinter/linter-rubocop#48
I am experiencing this issue, first time, after upgrading Atom Software versions: Ubuntu 18.10 .rubocop.yml
|
Me too! |
Same here, happening again with:
|
Same here:
Can you reopen this issue? |
This comment has been minimized.
This comment has been minimized.
AllCops:
Exclude:
- "**/*.erb" Putting this in |
@RonaldDijkstra for me not really option as I share my config with my team :-( |
I dug a bit deeper here and found that it is broken because of a rubocop update related to this issue rubocop/rubocop#4666. It breaks on rubocop 0.56.0 |
I think what happened here is that this line prevented rubocop from parsing a Line 231 in 9492d9b
But after the change the value of the |
This produces annoying errors in erb templates in Atom, see AtomLinter/linter-rubocop#48
Same thing happening here. This provides a remediation but does not fix the underlying issue: |
This causes linter-rubocop to run against ERB files, see AtomLinter/linter-rubocop#48 Use language-ruby-on-rails plugin instead
You can add it to a personal config file at |
Recently I've started experiencing a problem where linter-rubocop runs rubocop against erb files.
Running
rubocop
from the command line, erb files are skipped as expected.Is this a known problem? If so is there any workaround for it? I tried adding
app/views
to the list of excluded files, but I suspect rubocop ignores this when linter-rubocop passes in the filename explicitly.Thanks,
Paul.
The text was updated successfully, but these errors were encountered: