-
-
Notifications
You must be signed in to change notification settings - Fork 52
[IndexOutOfBoundsException] Wrong offset xxx. Should be in range: [0, yyy] #106
Comments
Reporting the findings is more important than having all tokens properly highlighted. We print warnings to investigate this further in the future.
Hey, |
Reporting the findings is more important than having all tokens properly highlighted. We print warnings to investigate this further in the future.
Reporting the findings is more important than having all tokens properly highlighted. We print warnings to investigate this further in the future.
* Use https to fetch dependencies from jcenter * Catch all errors on invalid syntax highlighting - #106 Reporting the findings is more important than having all tokens properly highlighted. We print warnings to investigate this further in the future. * Update to detekt 1.5.0 * Prepare 1.3.0 release * Fix max line issue
Thank you @arturbosch and @jvilya , it works now in sonar-kotlin v1.3.0 , with the fix from #108 |
Hello, These highlighting problems seem to be a result of style/formatting rules doing autocorrect during analysis. Disparity is not there where KtFile objects are first created, seems like it occurs after KtLintMultiRule runs (which if I'm not mistaken is class with formatting rules). Currently, one workaround to this issue is supplying .yml config with autoCorrect set to false. |
Hey, thanks for investigating this. |
SonarQube Scanner
4.2.0.1873
SonarQube Server
8.0.0
(I'm not using the latest sonarqube release 8.1 because of some support problem with another plugin I am using)detekt sonar-kotlin
1.2.0
Before updating the detekt sonar-kotlin to 1.2.0, I had the same error than this issue : #102
Now I have the one mentionned here.
Anyone having similar problem here ?
Thanks
The text was updated successfully, but these errors were encountered: