Skip to content

Commit

Permalink
remove checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
ShareASmile committed Nov 1, 2023
1 parent 9922654 commit 798a4cf
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 276 deletions.
31 changes: 1 addition & 30 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'checkstyle'

android {
compileSdkVersion 29
Expand Down Expand Up @@ -95,7 +94,6 @@ android {

ext {
icepickVersion = '3.2.0'
checkstyleVersion = '8.38'
stethoVersion = '1.5.1'
leakCanaryVersion = '2.5'
exoPlayerVersion = '2.11.8'
Expand All @@ -107,35 +105,9 @@ ext {
}

configurations {
checkstyle
ktlint
}

checkstyle {
configFile rootProject.file('checkstyle.xml')
ignoreFailures false
showViolations true
toolVersion = checkstyleVersion
}

task runCheckstyle(type: Checkstyle) {
source 'src'
include '**/*.java'
exclude '**/gen/**'
exclude '**/R.java'
exclude '**/BuildConfig.java'
exclude 'main/java/us/shandian/giga/**'

classpath = configurations.checkstyle

showViolations true

reports {
xml.enabled true
html.enabled true
}
}

task runKtlint(type: JavaExec) {
main = "com.pinterest.ktlint.Main"
classpath = configurations.ktlint
Expand All @@ -149,7 +121,7 @@ task formatKtlint(type: JavaExec) {
}

afterEvaluate {
//preDebugBuild.dependsOn /*runCheckstyle,*/ runKtlint
preDebugBuild.dependsOn runKtlint
}

dependencies {
Expand All @@ -160,7 +132,6 @@ dependencies {
implementation "frankiesardo:icepick:${icepickVersion}"
kapt "frankiesardo:icepick-processor:${icepickVersion}"

checkstyle "com.puppycrawl.tools:checkstyle:${checkstyleVersion}"
ktlint "com.pinterest:ktlint:0.40.0"

debugImplementation "com.facebook.stetho:stetho:${stethoVersion}"
Expand Down
62 changes: 0 additions & 62 deletions checkstyle-suppressions.xml

This file was deleted.

184 changes: 0 additions & 184 deletions checkstyle.xml

This file was deleted.

0 comments on commit 798a4cf

Please sign in to comment.