| LEFT | RIGHT |
| 1 apply plugin: 'com.android.application' | 1 apply plugin: 'com.android.application' |
| 2 apply plugin: 'checkstyle' |
| 2 | 3 |
| 3 allprojects { | 4 allprojects { |
| 4 repositories { | 5 repositories { |
| 5 mavenLocal() | 6 mavenLocal() |
| 6 mavenCentral() | 7 mavenCentral() |
| 7 } | 8 } |
| 8 } | 9 } |
| 9 | 10 |
| 10 repositories { | 11 repositories { |
| 11 mavenLocal() | 12 mavenLocal() |
| (...skipping 26 matching lines...) Expand all Loading... |
| 38 project ":libadblockplus-android" | 39 project ":libadblockplus-android" |
| 39 } | 40 } |
| 40 } | 41 } |
| 41 } | 42 } |
| 42 } | 43 } |
| 43 } | 44 } |
| 44 | 45 |
| 45 dependencies { | 46 dependencies { |
| 46 androidTestCompile project(':libadblockplus-android') | 47 androidTestCompile project(':libadblockplus-android') |
| 47 androidTestCompile fileTree(include: ['*.jar'], dir: 'libs') | 48 androidTestCompile fileTree(include: ['*.jar'], dir: 'libs') |
| 49 } |
| 50 |
| 51 checkstyle { |
| 52 toolVersion = '6.19' |
| 53 } |
| 54 |
| 55 task checkstyleMain(type: Checkstyle) { |
| 56 ignoreFailures = true |
| 57 showViolations = true |
| 58 source 'src/org/adblockplus/' |
| 59 exclude '**/gen/**' |
| 60 exclude '**/R.java' |
| 61 exclude '**/BuildConfig.java' |
| 62 reports { |
| 63 xml.destination "$project.buildDir/reports/checkstyle/main.xml" |
| 64 } |
| 65 classpath = files() |
| 66 configFile = file("${rootProject.rootDir}/third_party/checkstyle/java/rules/
eyeo_test_checks.xml") |
| 67 configProperties = [ |
| 68 "checkstyle.header.file" : file("${rootProject.rootDir}/third_party/
checkstyle/java/res/header.txt") |
| 69 ] |
| 48 } | 70 } |
| LEFT | RIGHT |