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.
Error from [com.netflix.nebula.lint.rule.GradleLintRule$1] processing source file [null]
Gradle version 5.4.1 Nebula 15.0.3 Nebula configuration in root build.gradle file ``` allprojects { apply plugin: 'nebula.lint' gradleLint { rules = [ 'archaic-wrapper', 'plugin-renamed', 'all-dependency', 'dependency-parentheses', 'minimum-dependency-version', 'dependency-tuple-expression', 'unused-dependency-exclude', 'deprecated-dependency-configuration'...
It seems that `DuplicateDependencyService.violationsForModules` treats the dependency, i.e. the file from its corresponding `ModuleVersionIdentifier` instance as a JAR, when it's really a directory to the compiled classes, i.e. `/Users/acabrera/example/foo/build/classes/java/main`. If...
I can not Sync my project because of error: `Cannot cast object '/home/yuliia/Documents/projects/android_projects/OCRme/app/build/intermediates/javac/releaseUnitTest/compileReleaseUnitTestJavaWithJavac/classes' with class 'java.io.File' to class 'org.gradle.api.file.FileCollection'` when added the plugin. Please advice.
The [spotbugs migration guide](https://spotbugs.readthedocs.io/en/latest/migration.html#com-google-code-findbugs-annotations) suggests to replace `com.google.code.findbugs:annotations` with `net.jcip:jcip-annotations:1.0` and `com.github.spotbugs:spotbugs-annotations:4.0.0-beta1`. When doing so on a project, that uses spotbugs, the lint plugin fails with ``` undeclared-dependency one or...
I would love to be able to run `generateGradleLintReport` and then click on a link in the terminal to open the report. Instead I have to go find it inside...
Following the README and adding the following to my Android app's root build.gradle: ``` buildscript { + classpath 'com.netflix.nebula:gradle-lint-plugin:10.4.2' } +allprojects { + apply plugin: 'nebula.lint' + gradleLint.rules = ['all-dependency']...
I have `junit:junit:4.12` defined as a `testCompile` dependency. When I execute tasks, that do not run the test task (e.g. `spotbugsMain`, `pmdMain`, `publish`), the test scope is also linted but...
The plugin setup is well explained, but it's not clear which task to invoke for it to work. Also, what is the state of the java, java-ilbrary and android support...
Hello. I have a very basic setup, a multimodule demo project, with two modules and one build.gradle as follows: ``` buildscript { repositories { jcenter() } dependencies { classpath 'com.netflix.nebula:gradle-lint-plugin:latest.release'...