Skip to content

Print filtered paths in debug mode #869

Closed
@kenyee

Description

@kenyee

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

  • Version used: 1.0.0.RC6-4
  • Operating System and version: OSX High Sierra
  • Link to your project:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions