skryukov / rubocop-gradual

Gradually improve your code with RuboCop
MIT License
36 stars 0 forks source link

Handle syntax errors #11

Closed skryukov closed 1 year ago

skryukov commented 1 year ago

This PR fixes an error that happens when RuboCop encounters a syntax error, for example:

{:line=>56, :column=>1, :length=>0, :message=>"Lint/Syntax: unexpected token $end\n(Using Ruby 3.1 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)"}