[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • 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 NAuthor Commented:
Review
0
 
objectsCommented:
think it would be referring to exists from your methods, ie. return statements
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
Sathish David Kumar NAuthor Commented:
Sorry now check ...
0
 
CEHJCommented:
Could be System.exit
0
 
Sathish David Kumar NAuthor 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 NAuthor 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 NAuthor 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 NAuthor 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

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

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