I read about Cyclomatic complexity and multiple return statements, but I am a little bit confused, because of the different opinions for multiple return statements.
First of all, during Cyclomatic Complexity calculation should I count each return statement as an endpoint which increase the complexity I think? In the formula (M = E - N + 2*P) when I add a return statement, it increases by one, is it right?
Guard clauses, which are used for simple sanity checks adds is another way instead of nested if clauses in order to return as soon as possible. However, this adds more return stetaments to the code and increase CC?
Are there any common best practices for usage of guard clauses and multiple return statements in terms of CC?