• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 224
  • Last Modified:

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 ?
0
Sathish David  Kumar N
Asked:
Sathish David  Kumar N
  • 6
  • 6
  • 2
1 Solution
 
CEHJCommented:
You didn't post anything...
0
 
Sathish David Kumar NArchitectAuthor Commented:
Review
0
 
objectsCommented:
think it would be referring to exists from your methods, ie. return statements
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Sathish David Kumar NArchitectAuthor Commented:
Sorry now check ...
0
 
CEHJCommented:
Could be System.exit
0
 
Sathish David Kumar NArchitectAuthor Commented:
Sorry i am not getting any point ?
0
 
objectsCommented:
Exits is the number of unique method calls (every call must have an exit)

http://www.enerjy.com/explorer/help/metrics/EXITS.html

Blocks is the number of code blocks { ..... }

http://www.enerjy.com/explorer/help/metrics/BLOCKS.html
0
 
Sathish David Kumar NArchitectAuthor Commented:
>>>>>>>>>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 ?
0
 
objectsCommented:
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
0
 
Sathish David Kumar NArchitectAuthor Commented:
but i have only one return ...
0
 
objectsCommented:
its counting methods calls (they exit your method)
0
 
objectsCommented:
void fn() {
   int y = g();   // <-- this is an exit because the thread leaves the method to call g()
}
0
 
Sathish David Kumar NArchitectAuthor Commented:
i call 2 or 3 method inside a method....

for re useable purpose i use the 2 or method??  is that wrong?
0
 
objectsCommented:
that sounds fine
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 6
  • 6
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now