Skip to content

[apex] Apex equivalent for Java's CommentRequiredRule #3038

Answered by jsotuyod
Nagendra080389 asked this question in Q&A
Discussion options

You must be logged in to vote

@Nagendra080389 welcomed. I fear I had some trouble understanding your issue, If I understand correctly you want an Apex rule that's equivalent to Java's CommentRequiredRule, right?

If so, then no, there is no such rule, and there can't be at the time being. As recently explained on #1087, we use Apex Jorje to parse Apex source code, and that parser drops all comments, meaning they are not available for PMD analyze.

I'm closing this as not implementable as it's not dependent on our own efforts. Feel free to reopen if I misunderstood you.

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by adangel
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1136 on January 15, 2021 09:33.