You need to sign in to do that
Don't have an account?
Roshan 10
How to reduce cognitive complexity of Apex code
I have installed Apex PMD extension in my VSCode. I see a warning message about cognitive complexity and would like to know if there are any articles with examples specific to APEX on how to reduce the complexity
There are no specific references to reduce cognitive complexity.
Review below links which can help you.
https://www.sonarsource.com/docs/CognitiveComplexity.pdf
https://ruwandotnet.wordpress.com/2012/03/13/59/
https://softwareengineering.stackexchange.com/questions/101830/what-does-the-cyclomatic-complexity-of-my-code-mean
Hope above information was helpful.
Please mark as Best Answer so that it can help others in the future.
Thanks,
Vinay Kumar