nebula-plugins / gradle-lint-plugin

A pluggable and configurable linter tool for identifying and reporting on patterns of misuse or deprecations in Gradle scripts.
Apache License 2.0
764 stars 88 forks source link

lintGradle not available at subproject level when plugin applied at root #182

Open nickcotter opened 6 years ago

nickcotter commented 6 years ago

I have a multimodule project - I apply the plugin as follows at the root:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.netflix.nebula:gradle-lint-plugin:latest.release'
    }
}

allprojects {
    apply plugin: 'nebula.lint'
    gradleLint.rules += 'unused-dependency'
    gradleLint.alwaysRun = false
}

I can run lintGradle at the root, but at the subproject level only the generateGradleLintReport task is available.

dmitriigriazin commented 5 years ago

Seems like the reason is the same in #196

dbolger commented 4 months ago

Also #242