From 4a722040c7a8f9380407c0b293546f57cfd6e4d6 Mon Sep 17 00:00:00 2001 From: Adam Jones Date: Wed, 8 Sep 2021 23:42:37 +0100 Subject: [PATCH] Remove ignored lint rules We don't do anything about these ones, and they just clutter the logs making important stuff much harder to find (as agreed in #2823 and #4077). We already use IntelliJ's inspections feature to replace the need for this. --- .github/workflows/android.yml | 2 +- .travis.yml | 2 +- app/build.gradle | 1 - app/quality.gradle | 45 ------ script/style/checkstyle.xml | 254 ---------------------------------- script/style/ruleset.xml | 15 -- 6 files changed, 2 insertions(+), 317 deletions(-) delete mode 100644 app/quality.gradle delete mode 100644 script/style/checkstyle.xml delete mode 100644 script/style/ruleset.xml diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 405c1b3c2..d8cf62e66 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -14,4 +14,4 @@ jobs: with: java-version: 1.8 - name: Build with Gradle - run: ./gradlew -Pcoverage lintBetaDebug pmd checkstyle jacocoTestBetaDebugUnitTestReport \ No newline at end of file + run: ./gradlew -Pcoverage jacocoTestBetaDebugUnitTestReport \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index e1c34ac7d..3e86a578d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,7 +23,7 @@ android: licenses: - android-sdk-license-.+ script: -- "./gradlew -Pcoverage lintBetaDebug pmd checkstyle jacocoTestBetaDebugUnitTestReport" +- "./gradlew -Pcoverage jacocoTestBetaDebugUnitTestReport" - if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then mkdir -p app/src/prodRelease/play/release-notes/en-US; fi diff --git a/app/build.gradle b/app/build.gradle index 0ccc38f60..356c1d7a7 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -7,7 +7,6 @@ apply plugin: 'kotlin-android' apply plugin: 'kotlin-kapt' apply plugin: 'kotlin-android-extensions' apply plugin: "com.hiya.jacoco-android" -apply from: 'quality.gradle' def isRunningOnTravisAndIsNotPRBuild = System.getenv("CI") == "true" && file('../play.p12').exists() diff --git a/app/quality.gradle b/app/quality.gradle deleted file mode 100644 index 1afdf0d68..000000000 --- a/app/quality.gradle +++ /dev/null @@ -1,45 +0,0 @@ -apply plugin: 'checkstyle' -apply plugin: 'pmd' - -check.dependsOn 'checkstyle', 'pmd' - -checkstyle { - toolVersion = '7.5.1' -} - -task checkstyle(type: Checkstyle) { - configFile file("${project.rootDir}/script/style/checkstyle.xml") - source 'src' - include '**/*.java' - exclude '**/gen/**' - - classpath = files() - - reports { - html { - enabled true - destination file("${project.buildDir}/reports/checkstyle/checkstyle.html") - } - } -} - -task pmd(type: Pmd) { - ignoreFailures = true - ruleSetFiles = files("${project.rootDir}/script/style/ruleset.xml") - ruleSets = [] - - source 'src' - include '**/*.java' - exclude '**/gen/**' - - reports { - xml.enabled = false - html.enabled = true - xml { - destination file("${project.buildDir}/reports/pmd/pmd.xml") - } - html { - destination file("${project.buildDir}/reports/pmd/pmd.html") - } - } -} diff --git a/script/style/checkstyle.xml b/script/style/checkstyle.xml deleted file mode 100644 index 216d1bce2..000000000 --- a/script/style/checkstyle.xml +++ /dev/null @@ -1,254 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/script/style/ruleset.xml b/script/style/ruleset.xml deleted file mode 100644 index d516ddcf3..000000000 --- a/script/style/ruleset.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - Custom ruleset for Commons Android app - - .*/R.java - .*/gen/.* - - - - -