Skip to content

Task for PMD, Checkstyle, Findbugs #33

@ghost

Description

Hi Stephane,

Really thank you for this awesome work !

I was playing with it, and I did not really understood why we need to use task for launching PMD, Checkstyle, or Findbugs. Is this a limitation of the current android plugin for Gradle ? Obviously there is something wrong since if I want to configure for example the checkstyle source without using a task with something like that :

checkstyle {
configFile file("${project.rootDir}/config/quality/checkstyle/checkstyle.xml")
source 'src'
include 'some java files'
exclude 'the gen folder'
classpath = files()
}

Gradle will give me this result :
unsupported Gradle DSL method found :'source()'

Of course the solution of using a task works perfectly but I really would like to understand why we have to do this way :)

And again, thank for sharing this awesome work !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions