Skip to content

Commit

Permalink
Remove PMD and Checkstyle from project
Browse files Browse the repository at this point in the history
Project no longer contains Java code.
Will migrate over to detekt tool.
  • Loading branch information
vgaidarji committed Dec 4, 2023
1 parent bf11045 commit 31dfa09
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 373 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apply plugin: 'com.android.application'
apply plugin: 'org.jetbrains.kotlin.android'
//apply from: 'config/quality.gradle'
apply from: 'config/quality.gradle'
apply from: 'config/jacoco.gradle'
//apply from: 'config/coveralls.gradle'

Expand Down
12 changes: 0 additions & 12 deletions app/config/checkstyle/checkstyle-suppressions.xml

This file was deleted.

54 changes: 0 additions & 54 deletions app/config/checkstyle/checkstyle.gradle

This file was deleted.

201 changes: 0 additions & 201 deletions app/config/checkstyle/checkstyle.xml

This file was deleted.

68 changes: 0 additions & 68 deletions app/config/pmd/pmd-ruleset.xml

This file was deleted.

38 changes: 1 addition & 37 deletions app/config/quality.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
apply plugin: 'pmd'
apply plugin: 'build-dashboard'
apply from: 'config/checkstyle/checkstyle.gradle'

android {
lintOptions {
Expand All @@ -13,38 +11,4 @@ android {
}
}

task pmd(type: Pmd) {
description 'Run PMD/CPD analysis.'
group 'verification'

ignoreFailures = true
ruleSetFiles = files("${project.rootDir}/app/config/pmd/pmd-ruleset.xml")
ruleSets = []

source = fileTree('src/main/java')
include '**/*.java'
exclude '**/gen/**'

reports {
xml.enabled = true
html.enabled = true
xml {
destination "$project.buildDir/reports/pmd/pmd.xml"
}
html {
destination "$project.buildDir/reports/pmd/pmd.html"
}
}

doLast {
File outDir = new File("$project.buildDir/reports/pmd/")
ant.taskdef(name: 'cpd', classname: 'net.sourceforge.pmd.cpd.CPDTask',
classpath: configurations.pmd.asPath)
ant.cpd(minimumTokenCount: '50', format: 'xml',
outputFile: new File(outDir, 'cpd.xml')) {
fileset(dir: "src/main/java") {
include(name: '**/*.java')
}
}
}
}
// TODO: configure detekt

0 comments on commit 31dfa09

Please sign in to comment.