Sathish David Kumar N
asked on
what is exits in code review
what is exits in code review ?
I review my code using enerjy . while i review the code its give below image .. what is mean by exits and block ? and its meantion as red why ?
I review my code using enerjy . while i review the code its give below image .. what is mean by exits and block ? and its meantion as red why ?
You didn't post anything...
think it would be referring to exists from your methods, ie. return statements
ASKER
Sorry now check ...
Could be System.exit
ASKER
Sorry i am not getting any point ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
>>>>>>>>>The metric measures the total number of unique methods called by all code in the source file.
What is mean by that ?
In some other package its show green with up arrow . In this package only its show down arrow with red color ?
What is mean by that ?
In some other package its show green with up arrow . In this package only its show down arrow with red color ?
when you call a method, the method you are in is exitted. It counts those.
the arrow is based on the score, green is good, red is bad
too many exits makes your code too complex
the arrow is based on the score, green is good, red is bad
too many exits makes your code too complex
ASKER
but i have only one return ...
its counting methods calls (they exit your method)
void fn() {
int y = g(); // <-- this is an exit because the thread leaves the method to call g()
}
int y = g(); // <-- this is an exit because the thread leaves the method to call g()
}
ASKER
i call 2 or 3 method inside a method....
for re useable purpose i use the 2 or method?? is that wrong?
for re useable purpose i use the 2 or method?? is that wrong?
that sounds fine