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
I'll be honest, I'm not sure how this should be handled. The Rails/HttpStatus is clearly not meant to be run on views. But I don't see how haml-lint can stop it from running...
The easiest way to solve your problem would be to add this to your regular .rubocop.yml config:
Rails/HttpStatus:
Exclude:
- '**/*.haml'
Sadly, I can't make this default in haml-lint since I don't know how I could detect that we are running with rubocop-rails.
= render 'partial', status: 'future'
Expected
No lints detected
Actual
Versions
I think this is an issue caused by
Rails/HttpStatus
which thinks it is running in a controller context.The text was updated successfully, but these errors were encountered: