Are Gemspec/RequiredRubyVersion issues with start_column > last_column
intended?
#10241
Answered
by
koic
radomirbosak
asked this question in
Q&A
-
I believe the following behavior started with version 1.22.2 . When I create a spec file Gem::Specification.new do |spec|
spec.name = 'foo'
end And run rubocop (e.g. latest 1.22.3) $ rubocop --format json foo.gemspec | jq '.files[0].offenses[0]'
{
"severity": "convention",
"message": "Gemspec/RequiredRubyVersion: `required_ruby_version` should be specified.",
"cop_name": "Gemspec/RequiredRubyVersion",
"corrected": false,
"correctable": false,
"location": {
"start_line": 1,
"start_column": 1,
"last_line": 1,
"last_column": 0,
"length": 0,
"line": 1,
"column": 1
}
} Then I get a situation where Tools which further process rubocop output might be confused by this. In version 1.21.0, both |
Beta Was this translation helpful? Give feedback.
Answered by
koic
Nov 12, 2021
Replies: 1 comment
-
This looks like a regression. I opened #10242 PR. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
radomirbosak
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This looks like a regression. I opened #10242 PR.