Skip to content

Commit 71fd961

Browse files
kevinohara80KroArtem
authored andcommitted
adds support for apex classes codeclimate#26 (codeclimate#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 codeclimate#26
1 parent dcf8ae4 commit 71fd961

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Config.groovy

Lines changed: 1 addition & 1 deletion
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)