Subnavigation

Metrics

Software Metrics Help You Keep Your Code Clean and Maintainable - We Show You If It Really Is

Icon_Axivion_MetricsMonitoring_840x470px

One way of ensuring your code is not impacted by software erosion, is to make sure you follow predefined rules. But do you always? 

Axivion Suite includes rule sets for many of the common software metrics. These include metrics based on lines and tokens, nesting, cyclomatic complexity, control flow or golden oldies like Halstead metrics. Even entire rule sets, such as HIS, are supported.

And of course, you can add your own rules at any time by using Axivion’s rule editor.

Selection of Metric Rules Included in Axivion Static Code Analysis

  • Lines of Code (LOC)
  • Nesting counts the maximum nesting within a function
  • McCabe Complexity aka cyclomatic complexity counts the number of nodes in the control flow of a graph with more than one successor. Every non-empty case statement is counted in a switch statement
  • McCabe Switch Complexity a variant of the cyclomatic complexity, as described above, but here each switch case is only counted once
  • Extended cyclomatic complexity includes boolean operators into a complexity measure
  • NPath counts the maximum number of non-cyclical program runs within a function
  • Number Of Invocations counts the number of different invocations within a routine
  • Number Of Parameters determines the number of a function’s formal parameters
  • Number Of Statements counts all statements within a function
  • Comment counts the lines within a function that contain a comment
  • Metric Comment Density calculates the comment density of a function, which corresponds to the ratio of comments before and within the function and the number of statements
  • Halstead metrics

Not Sure How to Monitor Your Metrics? 

Whether you need to implement checks for existing rules or want to add your own - we can help.  Contact us to discuss your specific use case with us or to schedule a demo.

 

Contact us

Axivion Suite

Read More

Download the Brochure

Download

Dead Code Analysis

Read More

Defect Analysis

Read More