detekt / sonar-detekt

SonarQube plugin for Kotlin
https://detekt.dev
GNU Lesser General Public License v3.0
493 stars 52 forks source link

Spread operator in SpringApplicationBuilder #57

Closed pk044 closed 6 years ago

pk044 commented 6 years ago

Hello, I asked a question on stackoverflow already, so if you don't mind, I'll paste it here:

https://stackoverflow.com/questions/48369495/kotlin-spread-operator-in-springapplicationbuilder

Should this be ignored? Thanks.

arturbosch commented 6 years ago

This is unfortunately a limited of detekt at the moment. It flags SpreadOperator-Usage in library code, which you do not have access to refactor the function. When we have type resolving, we will not report such cases. So the first answer on stackoverflow is right, you can suppress the finding or add it to the detekt baseline.