6

I haven't seen an Apex linter and was wondering if anyone knew of one or had repurposed a Java linter? I'm so used to having this available when writing JavaScript or Ruby, it would be awesome to see the same reminders while coding Apex.

1
  • 4
    You might consider looking into PMD. It does more than linting, but I think it can be used for that to some extent.
    – Adrian Larson
    Commented Jun 27, 2017 at 17:12

4 Answers 4

15

There's PMD Apex, which has a bunch of linting, plus various rules for SOQL inside loops, etc. That's the only one I'm aware of today.

2

sorry, this is an old post. But consider Clayton.io. It attaches to your source control repository (assuming you have one). I think it works on bitbucket and github at least.

I've used it for a month or two and it's great https://www.clayton.io/

Cheers Scott

0

We are currently working with this one and it seems promising:

https://github.com/renatoliveira/apexlint

0

You can use Apex PMD in:

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .