Run bundle exec erblint --lint-all
1 error(s) were found in ERB files
Linting 55 files with 16 linters...
Instance variable detected in partial.
In file: app/views/cold_messages/new.html.erb:1
Error: Process completed with exit code 1.
Digging into the code, it looks like the regex naively checks for an underscore to identify a partial. Is this correct, or am I misunderstanding the validator?
I have a template
app/views/cold_messages/new.html.erbthat uses an instance variable andPartialInstanceVariableis reporting a violation.Open source app and failing CI run here: https://github.com/joemasilotti/railsdevs.com/runs/4451151656?check_suite_focus=true
Digging into the code, it looks like the regex naively checks for an underscore to identify a partial. Is this correct, or am I misunderstanding the validator?
The text was updated successfully, but these errors were encountered: