-
-
Notifications
You must be signed in to change notification settings - Fork 757
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
Print filtered paths in debug mode #869
Comments
I assume this is solved as you mentioned it in #792? Feel free to reopen if you still have questions or problems. |
@arturbosch: And I still wish the build.gradle config for detekt had a debug mode. The debug mode should show which files it auto filtered out IMHO. |
Hm, good idea, I will reopen the issue with other name. |
Apparently the test-pattern affects things like the exclude list in the config 😀 If you add the exclusions that to that debug=true mode, that would help...and document that flag please 😃 |
Expected Behavior
I didn't see this reported yet...when you run detektCheck, it just says "build successful" and reports no output
Current Behavior
Should output a report to the shell when running from command line
Steps to Reproduce (for bugs)
I did have to change the exclusions as mentioned here: #792
Before that, it was randomly showing 0 files analyzed. After changing the exclusion it found the unit test files and flagged a few issues. I reconfigured detekt.yml to work around those issues but then it reported nothing (doesn't say 0 files found either).
Top level build.gradle file config looks like:
detekt {
version = "${detektVersion}"
profile("main") {
input = "$projectDir/app/src"
config = "$projectDir/detekt.yml"
filters = ".test.,./resources/.,./tmp/."
}
}
with this in the plugins list:
id "io.gitlab.arturbosch.detekt" version "1.0.0.RC6-4"
detekt.yml file is just the one generated w/ "gradle detektGenerateConfig" and copied to detekt.yml at the project root.
Context
Doesn't allow Detekt to run in our project. Would like to use it in addition to ktlint.
There should be a debug flag in the detekt build.gradle config closure IMHO....
Your Environment
The text was updated successfully, but these errors were encountered: