Click here to Skip to main content
15,943,294 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
i have a method whose cyclomatic complex of 146 how to reduce it..
Posted
Updated 6-Feb-14 0:44am
v2
Comments
johannesnestler 6-Feb-14 10:18am    
I took your method with cyclomatic complexity of 146 and reduced it to 144 by subtracting 2 ;-)

I would Google for that[^], searching for a general method that could be useful in your case.
 
Share this answer
 
Not a valid question since it depends on information you have not supplied, generally :

1) break your method down into smaller pieces.

or

2) rewrite your method with a simpler algorithm.

More that the above there is very little anybody can help you with further.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900