You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When upgrading to version 0.46.0, we're seeing a lot of false positives with the Style/DisableCopsWithinSourceCodeDirective linter. The following line triggers it for some reason:
%li.tab-navigation__tab{ **tab_attributes }
The text was updated successfully, but these errors were encountered:
I'm learning about a new Cop I didn't know about...
We use the begin # rubocop:disable Style/RedundantBegin,Lint/RedundantCopDisableDirective when we encounter tags to add valid indentation to the Ruby code send to Rubocop. (Using a block would cause scoping issues with variables)
I made a PR (#412) to fix this by instead adding a ensure to the begin and remove the disables. This should fix your issue.
In the meantime, I can only suggest to disable DisableCopsWithinSourceCodeDirective or to add AllowedCops for Style/RedundantBegin and Lint/RedundantCopDisableDirective
When upgrading to version 0.46.0, we're seeing a lot of false positives with the
Style/DisableCopsWithinSourceCodeDirective
linter. The following line triggers it for some reason:The text was updated successfully, but these errors were encountered: