https://kotlinlang.org logo
#detekt
Title
# detekt
v

Venkat , Bangalore , India

06/15/2020, 12:43 PM
Hi All, I am facing strange issue with SpreadOperator as Sonar blocked it https://arturbosch.github.io/detekt/performance.html#spreadoperator . We have gone through this link but we could not understand how to fix this issue if the array is dynamic ( coming from an external library).. Can any one please help me on how to fix this issue.?
c

Charles

06/15/2020, 1:29 PM
Is there a reason you don't want to suppress it? Sometimes that's the right answer.
v

Venkat , Bangalore , India

06/15/2020, 1:30 PM
@Charles Yes, i can do that .. in sonarqube have to treat like false positive or wont fix.. that solves the problem. but my doubt is about the Imposed Rule .. how it handles dynamic array
b

Brais Gabin

06/17/2020, 8:09 AM
I have this rule disabled exactly for this reason. Now that I think of it I should ask as you are doing now before.
v

Venkat , Bangalore , India

06/17/2020, 8:11 AM
faced first time. made as false positive in sonarqube.. didnt disable it
9 Views