Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: libadblockplus-android-settings/build.gradle

Issue 29347926: Issue 4248 - Add codestyle check
Patch Set: moved 'third_party' to review https://codereview.adblockplus.org/29567648/ Created Oct. 6, 2017, 11:33 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build.gradle ('k') | libadblockplus-android-tests/build.gradle » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libadblockplus-android-settings/build.gradle
diff --git a/libadblockplus-android-settings/build.gradle b/libadblockplus-android-settings/build.gradle
index 6a50134b7335a3cdcf8923fb43825d92d3ab979e..0656c8a2f3084ceb1d9df0b4b4804b53c7f15b22 100644
--- a/libadblockplus-android-settings/build.gradle
+++ b/libadblockplus-android-settings/build.gradle
@@ -1,4 +1,5 @@
apply plugin: 'com.android.library'
+apply plugin: 'checkstyle'
android {
compileSdkVersion 21
@@ -28,9 +29,28 @@ android {
}
}
-
-
dependencies {
compile project(':libadblockplus-android')
compile 'com.android.support:support-v4:21.0.3'
+}
+
+checkstyle {
+ toolVersion = '6.19'
+}
+
+task checkstyleMain(type: Checkstyle) {
+ ignoreFailures = true
+ showViolations = true
+ source 'src/org/adblockplus/'
+ exclude '**/gen/**'
+ exclude '**/R.java'
+ exclude '**/BuildConfig.java'
+ reports {
+ xml.destination "$project.buildDir/reports/checkstyle/main.xml"
+ }
+ classpath = files()
+ configFile = file("${rootProject.rootDir}/third_party/checkstyle/java/rules/eyeo_production_checks.xml")
+ configProperties = [
+ "checkstyle.header.file" : file("${rootProject.rootDir}/third_party/checkstyle/java/res/header.txt")
+ ]
}
« no previous file with comments | « build.gradle ('k') | libadblockplus-android-tests/build.gradle » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld