Add a Gradle linter to help me write clean build configurations
The linter does not run by default. To activate it, use "./gradlew autoLintGradle".
This commit is contained in:
parent
2ef04905c2
commit
dec3b8f15b
17
build.gradle
17
build.gradle
|
@ -44,3 +44,20 @@ subprojects { subproject ->
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
buildscript {
|
||||||
|
repositories.jcenter()
|
||||||
|
dependencies {
|
||||||
|
classpath 'com.netflix.nebula:gradle-lint-plugin:latest.release'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
allprojects {
|
||||||
|
apply plugin: 'nebula.lint'
|
||||||
|
gradleLint.alwaysRun = false
|
||||||
|
gradleLint.rules = ['all-dependency']
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue