Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0 kotlin files were analyzed Android Setup. #754

Closed
Shubhampatni86 opened this issue Feb 20, 2018 · 3 comments
Closed

0 kotlin files were analyzed Android Setup. #754

Shubhampatni86 opened this issue Feb 20, 2018 · 3 comments

Comments

@Shubhampatni86
Copy link

Shubhampatni86 commented Feb 20, 2018

I'm trying to setup Detekt for one of Android-Kotlin based project. But it always end up success build with message "0 kotlin files were analyzed."

Following setup I'm using

plugins {
    id "io.gitlab.arturbosch.detekt" version "1.0.0.RC6-3"
}
detekt {
    version = "1.0.0.RC6-3"
    profile("main") {
        input = "$projectDir/app"
        config = "$projectDir/detekt.yml"
        filters = ".*/test/.*,.*/resources/.*,.*/build/.*"
        //filters = ".*test.*,.*/resources/.*,.*/tmp/.*"
        baseline = "$input/reports/baseline.xml"
        parallel = true
    }
    profile("test") {
        filters = ".*/src/main/kotlin/.*,.*/build/.*,.*/resources/.*"
        configResource = "$projectDir/detekt.yml"
        config = null
    }
}

Any suggestion what I'm missing.

@arturbosch
Copy link
Member

arturbosch commented Feb 22, 2018

Is your project somewhere online?
In which gradle file did you declare the detekt extension?
Try using detektBaseline: is there a new xml file where also your code lies?

@arturbosch
Copy link
Member

Closing as no feedback was given. You can reopen the issueagain if you need help.

@lock
Copy link

lock bot commented Jun 20, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related topics.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants