Hi, after running latest rubocop including https://github.com/rubocop-hq/rubocop/pull/7921 I got syntax errors reported by sonarqube for the endless ranges (1…) introduced in ruby 2.6 https://blog.bigbinary.com/2018/07/04/ruby-2-6-adds-endless-range.html
After digging a bit deeper, I found that https://github.com/SonarSource/slang/blob/9edc3b56e3ec9c5e3c4aff2e01079af2c7a3a79f/sonar-ruby-plugin/src/main/resources/whitequark_parser_init.rb#L21 requires the parser for ruby 2.5, that does not support the endless ranges.
This limits the usefulness of sonarqube, if one wants to use new syntax introduced by newer ruby versions. Rubocop itself uses the ruby version defined in .ruby-version file, could that be an option to use the corresponding parser?