Skip to content

Commit 5455b68

Browse files
kevinohara80filipesperandio
authored andcommitted
adds support for apex classes #26 (#29)
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
1 parent 565e639 commit 5455b68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Config.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class Config {
7878
def i = files.iterator()
7979
while(i.hasNext()) {
8080
def name = i.next()
81-
if(!name.endsWith(".java")) {
81+
if(!name.endsWith(".java") && !name.endsWith(".cls")) {
8282
i.remove()
8383
}
8484
}

0 commit comments

Comments
 (0)