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

Unified Diff: libadblockplus-android-webviewapp/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 | « libadblockplus-android-webview/build.gradle ('k') | libadblockplus-android/build.gradle » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libadblockplus-android-webviewapp/build.gradle
diff --git a/libadblockplus-android-webviewapp/build.gradle b/libadblockplus-android-webviewapp/build.gradle
index 306b2be83eb3123f8e4e4736f54bab74e088b379..ca38676fb9d9a83129e9877efb5a79676a623456 100644
--- a/libadblockplus-android-webviewapp/build.gradle
+++ b/libadblockplus-android-webviewapp/build.gradle
@@ -1,4 +1,5 @@
apply plugin: 'com.android.application'
+apply plugin: 'checkstyle'
allprojects {
repositories {
@@ -40,9 +41,29 @@ android {
}
}
-
dependencies {
compile project(':libadblockplus-android-settings')
compile project(':libadblockplus-android-webview')
compile 'com.android.support:appcompat-v7: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 | « libadblockplus-android-webview/build.gradle ('k') | libadblockplus-android/build.gradle » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld