detekt/detekt

Support merging of baselines for gradle plugin

Aberta

#1.589 aberto em 15 de abr. de 2019

 (15 comentários) (0 reação) (0 responsável)Kotlin (834 forks)batch import
gradle-pluginhelp wantedimprovement

Métricas do repositório

Stars
 (6.942 estrelas)
Métricas de merge de PR
 (Mesclagem média 4d 9h) (65 fundiu PRs em 30d)

Description

I'm trying to add some rules into the Whitelist but it has no effect on the report file. There is an example of UndocumentedPublicClass in MenuEntryView.kt that should be white listed.

//detekt.gradle
detekt {
    config = files("$rootDir/default-detekt-config.yml")
    filters = ".*build.*,.*/resources/.*,.*/tmp/.*"
    baseline = file("$rootDir/detekt-baseline.xml")
}
<!--detekt-baseline.xml-->
<?xml version="1.0" ?>
<SmellBaseline>
    <Whitelist>
        <ID>
            UndocumentedPublicClass:MenuEntryView.kt$com.foo.bar.menu.MenuEntryView.kt
        </ID>
    </Whitelist>
</SmellBaseline>

I don't manage to see what I'm missing into the documentation

Guia do colaborador