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

'excludes' configuration for diktat gradle plugin is not working at all #1094

Closed
orchestr7 opened this issue Nov 7, 2021 · 2 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@orchestr7
Copy link
Member

orchestr7 commented Nov 7, 2021

fun Project.createDiktatTask() {
    if (this == rootProject) {
        // apply diktat to buildSrc
        apply<DiktatGradlePlugin>()
        configure<DiktatExtension> {
            diktatConfigFile = rootProject.file("diktat-analysis.yml")
            inputs = files(
                "src/**/*.kt"
            )
            excludes = files("src/test")
        }
    }
@orchestr7 orchestr7 added the bug Something isn't working label Nov 7, 2021
@petertrr
Copy link
Member

petertrr commented Nov 7, 2021

Does it work with src/test/**?

@orchestr7
Copy link
Member Author

orchestr7 commented Nov 8, 2021

It appeared that it was a wrong configuration

petertrr added a commit that referenced this issue Nov 17, 2021
#1118)

### What's done:
* Changed logic
* Changed examples
* Changed tests
* Added proper annotations for some properties inside gradle plugin (resulting in 'automatic' `NO_SOURCE` statuses wen provided patterns don't match anything)
* Fix deprecation warnings in `diktat-gradle-plugin/build.gradle.kts`

This PR proposes a more convenient API for configuring inputs for gradle task. See #1026 , #1094
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants