-
Notifications
You must be signed in to change notification settings - Fork 53
haml files + RuboCop #145
Comments
Well now I'm just confused... none of those scopes are in the list of scopes this package should trigger on... Can you click around and run that command and see if any of the |
For reference, this was originally filed and discussed over in AtomLinter/linter-haml#99. |
@Arcanemagus me too >< It's only periodic, so I'm really confused to the trigger. That I haven't determined yet. Once it happens, I need to close the project and reopen. |
+1, having this problem too. After file closing all become fine. I am not sure, but it appeared after last update. |
The only way I can think of for this to happen is if part of the file is marked as one of the allowed scopes. Do you have a file you consistently see this on that you can share? What do you get when you run |
I can reliably reproduce this by doing string interpolation in an attribute hash. Create a new haml file:
All good so far. Now,
...and the rubocop linter kicks in. Save the file, close and reopen, rubocop errors are gone and I can continue editing. Until I do another string interpolation, anyway. Edit: doesn't need to be in an attribute hash. |
Ah ha! In this block: %a{ href: "asdfasdf#{}" } If you place the cursor in between the Can somebody who knows HAML better file an issue on language-haml to get that marked as |
Looks like this was resolved upstream |
Seems to still be happening to me. |
|
Currently seeing RuboCop errors when in HAML files.
RuboCop error:
The text was updated successfully, but these errors were encountered: