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
In Travis CI: "0 kotlin files were analyzed." #1158
Comments
On closer inspection, looks like this is on Travis only, not AppVeyor... may be a *nix vs Windows issue with detekt itself? |
Just to clarify: This does not just affect |
Simple when you know what to look for... The filters set when Travis build runs includes I'd say the root cause is that though the detekt is run from working directory |
Oh. Right... You want to submit a fix for this? |
Can do for Travis, yeah. But I'm also going to open a new issue to see if behaviour should change - I'm surprised that it's not just the relative path where the filter applies. |
True, that would be the overall better fix for it. Which makes me wonder. Did we change this behavior at some point? (absolute vs relative path considered for excluding paths) Or did Travis change the directory projects get cloned into...? |
I know there have been some recent changes to path filtering in detekt, so my guess is a change was made that inadvertently changed the behaviour. Opened #1212 to track. |
Looking at |
Do you want to close this in favour of a proper fix for #1212, or implement a workaround? I'm inclined to close this since root cause is identified and an issue opened to track the issue. AppVeyor appears to run detekt just fine as part of the build so any non-compliant code will still fail CI. |
👍 Thanks for opening the concrete issue. We should definitely fix this properly. |
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. |
Expected Behavior
detekt Gradle plugin analyzes files during CI.
Current Behavior
detekt Gradle plugin does not analyze any files during CI.
Steps to Reproduce (for bugs)
View the Travis build log for master branch (https://travis-ci.org/arturbosch/detekt/jobs/432263468 at time of writing). See "0 kotlin files were analyzed." multiple times in the logs.
Context
N/A
Your Environment
N/A - build running in CI environment
The text was updated successfully, but these errors were encountered: