common-kotlin:DuplicatedBlocks should ignore imports


(Andrei Petcu) #1

SonarQube™ technology is powered by SonarSource SA Version 6.7.4 (build 38452)
SonarKotlinLanguages 1.0.1 (build 965)

package com.mycompany;

import org.w3c.dom.Document
import javax.inject.Inject
import javax.inject.Singleton
import javax.xml.transform.TransformerFactory
import javax.xml.transform.dom.DOMSource
Wrap code around triple quote ``` for proper formatting

I initially reported it here by mistake

(Andrei Petcu) #2

Hmm… I just found this

Seems like it’s the same thing but it is fixed. No clear version where it got fixed.

(Pierre-Yves Nicolas) #5

The “fix version” was missing on SONARSLANG-62, I corrected it. Thanks.
That should be released early October, as part of SonarKotlin 1.1.

(Alexandre Gigleux) #6

To close this thread, SONARSLANG-62 was fixed and it is available as part of SonarKotlin 1.2.1

(Andrei Petcu) #7

Thank you! I updated. Will report back if this will appear again.