Skip to content

Commit

Permalink
adds support for apex classes #26 (#29)
Browse files Browse the repository at this point in the history
Currently, Salesforce developers cannot use CodeClimate despite CodeClimate having PMD as a plugin. This is because the PMD plugin filters out all files that are not Java (.java). This patch allows for the Apex class extension to be processed as well (.cls).

Related to #26
  • Loading branch information
kevinohara80 authored and filipesperandio committed Nov 7, 2018
1 parent 565e639 commit 5455b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Config.groovy
Original file line number Diff line number Diff line change
@@ -78,7 +78,7 @@ class Config {
def i = files.iterator()
while(i.hasNext()) {
def name = i.next()
if(!name.endsWith(".java")) {
if(!name.endsWith(".java") && !name.endsWith(".cls")) {
i.remove()
}
}

0 comments on commit 5455b68

Please sign in to comment.