Hi, I want to report a violation of Detekt custom ...
# detekt
i
Hi, I want to report a violation of Detekt custom rules as a '*Bug*' in SonarQube, but I am unable to do so. Detekt doesn't have a
Bug
class to use while generating reports for bugs, hence I am using
CodeSmell
. For example, as shown in the code below:
Copy code
override fun visitNamedFunction(function: KtNamedFunction) {
    super.visitNamedFunction(function)

    if (true) { // this can be replaced by any logic
        report(CodeSmell(issue, Entity.from(function), "Use Singleton Annotation with Provides"))
    }
}
Has anyone else encountered a similar issue?
b
On 2.0 we remove the concept of issue type. An issue can only have a severity, but it doesn't have type. Could you elaborate why the type is important to you?
thank you color 1