Hi,
I have to check any rule for non test class.
Example - All SOQL statements in non-test classes should be either bound by a LIMIT clause or WHERE clause.
How can we check for non-test classes only?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have to check any rule for non test class.
Example - All SOQL statements in non-test classes should be either bound by a LIMIT clause or WHERE clause.
How can we check for non-test classes only?
Please refer to https://pmd.github.io/latest/pmd_userdocs_extending_designer_reference.html This explains how to use the rule designer to see the data, that is available in the AST nodes.
A XPath Query could look like this:
Feel free to ask the question again on https://github.com/pmd/pmd/issues as github is the main place where contributors will see your question.