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?
thanks for reporting this issue, I created ticket in JIRA https://jira.sonarsource.com/browse/SONARSLANG-488 , but I can’t provide any eta when this will get fixed (I hope we would be able to refresh Ruby plugin within next few months)