gradle-lint-plugin
gradle-lint-plugin copied to clipboard
A pluggable and configurable linter tool for identifying and reporting on patterns of misuse or deprecations in Gradle scripts.
As we've seen in #126, Gradle's `java-library` plugin supports new dependency configurations, `implementation` and `api`. It can be difficult to tell when to declare a dependency as `implementation` vs `api`....
The first attempt at `apply from` support was incompatible with rules that kept state about the call sites in files - each instance of the rule was running against the...
Use of internal classes/service wiring is breaking the rule on recent versions. I've disabled the spec for now to keep our builds passing on the latest versions, so we can...
It appears from [here](https://github.com/nebula-plugins/gradle-lint-plugin/blob/4cb52442661fc5659b784eae0ef9feb8071d38a2/src/main/groovy/com/netflix/nebula/lint/plugin/GradleLintPlugin.groovy#L32) that `fixGradleList` (and the other gradle tasks) are not applied to subprojects. Is there a way to allow this? I work in a large enterprise build...
I have one bad library: testRuntime 'com.jayway.jsonpath:json-path:2.2.0' It has transitive dependency net.minidev:accessors-smart:1.1 that repackages org.ow2.asm:asm classes and includes it as transitive dependency as well. OMG I tried to fix it...
Gradle Lint reports: warning unused-dependency this dependency is unused and can be removed backend/build.gradle:70 compile 'io.springfox:springfox-bean-validators:2.6.1' But in reality it is used at compile time like this: import springfox.bean.validators.configuration.BeanValidatorPluginsConfiguration; ......
Execution failed for task ':lintGradle'. > Could not resolve all dependencies for configuration ':lintExcludes'. > Module version : proj:2.77.0, configuration 'lintExcludes' declares a dependency on configuration 'default' which is not...
For compile, testCompile, classpath, processor, etc
Running fixGradleLint consistently fails with the following even when I don't have any programs running: `Caused by: java.io.IOException: error=23, Too many open files in system at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.(UNIXProcess.java:247)...
In build.gradle we have: `ext { ... spockVersion = "1.1-groovy-${groovyMinorVersion}-rc-2" ... }` Later on we have: `dependencies { ... mainTestCompile ("org.spockframework:spock-core:${spockVersion}") { exclude group: "org.codehaus.groovy" ... }` When I run...