Error writing Java custom rule

Hey @KevinJin,
Sorry for the late reply. I had a quick look at the code, and it looks to me like the issues in your test code are not properly identified with a // Noncompiliant comment on the same line.

enum Country { // Noncompliant
...

With comments on the problematic lines, the testing harness can verify if issues are raised at the right location (beware of this when reformatting the file).

I hope this helps.

1 Like