I need to calculate the cyclomatic complexity of C# methods and need to define the rule according to the CC value, in the FXcop 12.0.
I've found that the tools like Code Metrics provide functionality to calculate the CC values, but I don't know how to use it in my code. Basically my requirement is the value of CC to reported via Sonar.
If anybody has written a custom rule for this or any idea how to do this, Please help