-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[apex] Invalid Apex in Cognitive Complexity tests #2358
Comments
@adangel @gwilymatgearset will work on this. The original contributor. I couldnt assign it to him. Can you? |
I've invited him now as a outside collaborator. @gwilymatgearset can you accept the invite? Then I can assign the issue to you... thanks |
@rsoesemann I'm slightly confused by 2 of your comments :)
That makes it invalid apex doesn't it?
I went for upper case rather than lower case here because that's what salesforce do in all of their documentation (and what they do in trailhead) |
@gwilymatgearset Sorry for the confusion. Your examples just dont compile because of the missing returns but other Apex examples in the same XML are faulty. I mixed this up. If you have time to fix them in one go this would be awesome. |
Can do :). |
The Cognitive Complexity rule added by @gwilymatgearset in PMD 6.22 (#2297) has text sample code that is no valid Apex.
Please check and fix ALL instances but here are a few issues:
Here's the example code, that needs to be fixed:
pmd/pmd-apex/src/main/resources/category/apex/design.xml
Lines 112 to 143 in 31bf08a
The text was updated successfully, but these errors were encountered: