Fork me on GitHub

JavaNCSS Metric Results

[ package ] [ object ] [ method ] [ explanation ]

The following document contains the results of a JavaNCSS metric analysis, using JavaNCSS version 33.54.
JavaNCSS web site.

Packages

Packages

[ package ] [ object ] [ method ] [ explanation ]

Packages sorted by NCSS.

Package Classes Methods NCSS Javadocs Javadoc lines Single lines comment Multi lines comment
fr.paris.lutece.plugins.form.modules.datevalidators.web 1 22 582 23 135 29 33
fr.paris.lutece.plugins.form.modules.datevalidators.business 20 97 531 117 567 7 660
fr.paris.lutece.plugins.form.modules.datevalidators.service.validator 1 9 204 10 59 31 33
fr.paris.lutece.plugins.form.modules.datevalidators.service 3 7 107 10 40 5 102
fr.paris.lutece.plugins.form.modules.datevalidators.business.comparator 7 14 53 21 91 0 231
fr.paris.lutece.plugins.form.modules.datevalidators.util 2 3 33 5 18 6 66
fr.paris.lutece.plugins.form.modules.datevalidators.business.unit 4 4 18 8 28 0 132
fr.paris.lutece.plugins.form.modules.datevalidators.business.operator 3 3 16 6 30 0 99
Classes total Methods total NCSS total Javadocs Javadoc lines Single lines comment Multi lines comment
41 159 1544 200 968 78 1356

Objects

Objects

[ package ] [ object ] [ method ] [ explanation ]

TOP 30 classes containing the most NCSS.

Object NCSS Methods Classes Javadocs
fr.paris.lutece.plugins.form.modules.datevalidators.web.DateValidatorsJspBean 540 22 0 23
fr.paris.lutece.plugins.form.modules.datevalidators.service.validator.DateValidator 161 9 0 10
fr.paris.lutece.plugins.form.modules.datevalidators.business.RuleDAO 115 6 0 7
fr.paris.lutece.plugins.form.modules.datevalidators.business.DateCalculatedDAO 88 6 0 7
fr.paris.lutece.plugins.form.modules.datevalidators.service.DateValidatorsResourceIdService 57 4 0 5
fr.paris.lutece.plugins.form.modules.datevalidators.business.Rule 37 14 0 15
fr.paris.lutece.plugins.form.modules.datevalidators.business.OperatorDAO 27 2 0 3
fr.paris.lutece.plugins.form.modules.datevalidators.business.UnitDAO 27 2 0 3
fr.paris.lutece.plugins.form.modules.datevalidators.business.ComparatorDAO 27 2 0 3
fr.paris.lutece.plugins.form.modules.datevalidators.business.DateCalculated 26 10 0 11
fr.paris.lutece.plugins.form.modules.datevalidators.service.DateValidatorsService 24 3 0 4
fr.paris.lutece.plugins.form.modules.datevalidators.util.DateValidatorsConstants 20 1 0 2
fr.paris.lutece.plugins.form.modules.datevalidators.business.Unit 16 6 0 7
fr.paris.lutece.plugins.form.modules.datevalidators.business.Comparator 16 6 0 7
fr.paris.lutece.plugins.form.modules.datevalidators.business.Operator 16 6 0 7
fr.paris.lutece.plugins.form.modules.datevalidators.business.RuleHome 14 6 0 7
fr.paris.lutece.plugins.form.modules.datevalidators.business.DateCalculatedHome 14 6 0 7
fr.paris.lutece.plugins.form.modules.datevalidators.util.DateValidatorsUtils 9 2 0 3
fr.paris.lutece.plugins.form.modules.datevalidators.business.UnitHome 7 3 0 4
fr.paris.lutece.plugins.form.modules.datevalidators.business.ComparatorHome 7 3 0 4
fr.paris.lutece.plugins.form.modules.datevalidators.business.OperatorHome 7 3 0 4
fr.paris.lutece.plugins.form.modules.datevalidators.business.IRuleDAO 6 5 0 6
fr.paris.lutece.plugins.form.modules.datevalidators.business.comparator.ComparatorEqual 6 2 0 3
fr.paris.lutece.plugins.form.modules.datevalidators.business.comparator.ComparatorNotEqual 6 2 0 3
fr.paris.lutece.plugins.form.modules.datevalidators.business.comparator.ComparatorLessOrEqual 6 2 0 3
fr.paris.lutece.plugins.form.modules.datevalidators.business.comparator.ComparatorLess 6 2 0 3
fr.paris.lutece.plugins.form.modules.datevalidators.business.comparator.ComparatorGreater 6 2 0 3
fr.paris.lutece.plugins.form.modules.datevalidators.business.comparator.ComparatorGreaterOrEqual 6 2 0 3
fr.paris.lutece.plugins.form.modules.datevalidators.business.IDateCalculatedDAO 6 5 0 6
fr.paris.lutece.plugins.form.modules.datevalidators.business.unit.UnitYear 3 1 0 2

TOP 30 classes containing the most methods.

Object NCSS Methods Classes Javadocs
fr.paris.lutece.plugins.form.modules.datevalidators.web.DateValidatorsJspBean 540 22 0 23
fr.paris.lutece.plugins.form.modules.datevalidators.business.Rule 37 14 0 15
fr.paris.lutece.plugins.form.modules.datevalidators.business.DateCalculated 26 10 0 11
fr.paris.lutece.plugins.form.modules.datevalidators.service.validator.DateValidator 161 9 0 10
fr.paris.lutece.plugins.form.modules.datevalidators.business.RuleHome 14 6 0 7
fr.paris.lutece.plugins.form.modules.datevalidators.business.RuleDAO 115 6 0 7
fr.paris.lutece.plugins.form.modules.datevalidators.business.Unit 16 6 0 7
fr.paris.lutece.plugins.form.modules.datevalidators.business.Comparator 16 6 0 7
fr.paris.lutece.plugins.form.modules.datevalidators.business.DateCalculatedDAO 88 6 0 7
fr.paris.lutece.plugins.form.modules.datevalidators.business.DateCalculatedHome 14 6 0 7
fr.paris.lutece.plugins.form.modules.datevalidators.business.Operator 16 6 0 7
fr.paris.lutece.plugins.form.modules.datevalidators.business.IRuleDAO 6 5 0 6
fr.paris.lutece.plugins.form.modules.datevalidators.business.IDateCalculatedDAO 6 5 0 6
fr.paris.lutece.plugins.form.modules.datevalidators.service.DateValidatorsResourceIdService 57 4 0 5
fr.paris.lutece.plugins.form.modules.datevalidators.business.UnitHome 7 3 0 4
fr.paris.lutece.plugins.form.modules.datevalidators.business.ComparatorHome 7 3 0 4
fr.paris.lutece.plugins.form.modules.datevalidators.business.OperatorHome 7 3 0 4
fr.paris.lutece.plugins.form.modules.datevalidators.service.DateValidatorsService 24 3 0 4
fr.paris.lutece.plugins.form.modules.datevalidators.business.IOperatorDAO 3 2 0 3
fr.paris.lutece.plugins.form.modules.datevalidators.business.OperatorDAO 27 2 0 3
fr.paris.lutece.plugins.form.modules.datevalidators.business.UnitDAO 27 2 0 3
fr.paris.lutece.plugins.form.modules.datevalidators.business.comparator.ComparatorEqual 6 2 0 3
fr.paris.lutece.plugins.form.modules.datevalidators.business.comparator.ComparatorNotEqual 6 2 0 3
fr.paris.lutece.plugins.form.modules.datevalidators.business.comparator.ComparatorLessOrEqual 6 2 0 3
fr.paris.lutece.plugins.form.modules.datevalidators.business.comparator.ComparatorLess 6 2 0 3
fr.paris.lutece.plugins.form.modules.datevalidators.business.comparator.ComparatorGreater 6 2 0 3
fr.paris.lutece.plugins.form.modules.datevalidators.business.comparator.IComparator 3 2 0 3
fr.paris.lutece.plugins.form.modules.datevalidators.business.comparator.ComparatorGreaterOrEqual 6 2 0 3
fr.paris.lutece.plugins.form.modules.datevalidators.business.ComparatorDAO 27 2 0 3
fr.paris.lutece.plugins.form.modules.datevalidators.business.IComparatorDAO 3 2 0 3

Averages.

NCSS average Program NCSS Classes average Methods average Javadocs average
32.59 1,544.00 0.00 3.88 4.88

Methods

Methods

[ package ] [ object ] [ method ] [ explanation ]

TOP 30 Methods containing the most NCSS.

Methods NCSS CCN Javadocs
fr.paris.lutece.plugins.form.modules.datevalidators.web.DateValidatorsJspBean.getRuleFields(HttpServletRequest,Rule,int) 63 42 1
fr.paris.lutece.plugins.form.modules.datevalidators.service.validator.DateValidator.validateRuleDateCalculated(HttpServletRequest,FormSubmit,Plugin,Rule) 42 19 1
fr.paris.lutece.plugins.form.modules.datevalidators.service.DateValidatorsResourceIdService.register() 35 1 1
fr.paris.lutece.plugins.form.modules.datevalidators.web.DateValidatorsJspBean.getManageDateCalculated(HttpServletRequest) 34 8 1
fr.paris.lutece.plugins.form.modules.datevalidators.business.RuleDAO.selectRulesByForm(int,Plugin) 32 4 1
fr.paris.lutece.plugins.form.modules.datevalidators.web.DateValidatorsJspBean.getDateCalculatedFields(HttpServletRequest,DateCalculated) 32 16 1
fr.paris.lutece.plugins.form.modules.datevalidators.service.validator.DateValidator.getUI(HttpServletRequest,int) 30 4 1
fr.paris.lutece.plugins.form.modules.datevalidators.web.DateValidatorsJspBean.doSelectType(HttpServletRequest) 27 10 1
fr.paris.lutece.plugins.form.modules.datevalidators.web.DateValidatorsJspBean.getModifyDateCalculated(HttpServletRequest) 26 9 1
fr.paris.lutece.plugins.form.modules.datevalidators.business.DateCalculatedDAO.selectAll(Plugin) 25 2 1
fr.paris.lutece.plugins.form.modules.datevalidators.service.validator.DateValidator.validateRuleEntry(HttpServletRequest,FormSubmit,Plugin,Rule) 25 13 1
fr.paris.lutece.plugins.form.modules.datevalidators.web.DateValidatorsJspBean.getModifyRuleDateReference(HttpServletRequest) 23 7 1
fr.paris.lutece.plugins.form.modules.datevalidators.web.DateValidatorsJspBean.getModifyRuleDateCalculated(HttpServletRequest) 23 7 1
fr.paris.lutece.plugins.form.modules.datevalidators.business.RuleDAO.insert(Rule,Plugin) 22 5 1
fr.paris.lutece.plugins.form.modules.datevalidators.web.DateValidatorsJspBean.getModifyRuleEntry(HttpServletRequest) 22 7 1
fr.paris.lutece.plugins.form.modules.datevalidators.business.DateCalculatedDAO.load(int,Plugin) 21 2 1
fr.paris.lutece.plugins.form.modules.datevalidators.business.RuleDAO.store(Rule,Plugin) 20 5 1
fr.paris.lutece.plugins.form.modules.datevalidators.business.RuleDAO.load(int,Plugin) 20 4 1
fr.paris.lutece.plugins.form.modules.datevalidators.service.validator.DateValidator.validateRuleDateReference(HttpServletRequest,FormSubmit,Plugin,Rule) 20 9 1
fr.paris.lutece.plugins.form.modules.datevalidators.web.DateValidatorsJspBean.getCreateRuleDateReference(HttpServletRequest) 20 5 1
fr.paris.lutece.plugins.form.modules.datevalidators.web.DateValidatorsJspBean.getCreateRuleDateCalculated(HttpServletRequest) 20 5 1
fr.paris.lutece.plugins.form.modules.datevalidators.web.DateValidatorsJspBean.doModifyRule(HttpServletRequest) 20 13 1
fr.paris.lutece.plugins.form.modules.datevalidators.web.DateValidatorsJspBean.getCreateRuleEntry(HttpServletRequest) 19 5 1
fr.paris.lutece.plugins.form.modules.datevalidators.web.DateValidatorsJspBean.getCreateDateCalculated(HttpServletRequest) 19 5 1
fr.paris.lutece.plugins.form.modules.datevalidators.web.DateValidatorsJspBean.doModifyDateCalculated(HttpServletRequest) 19 11 1
fr.paris.lutece.plugins.form.modules.datevalidators.web.DateValidatorsJspBean.doCreateRule(HttpServletRequest) 18 9 1
fr.paris.lutece.plugins.form.modules.datevalidators.service.validator.DateValidator.addPermissions(HttpServletRequest,Object) 17 5 1
fr.paris.lutece.plugins.form.modules.datevalidators.web.DateValidatorsJspBean.getSelectType(HttpServletRequest) 14 5 1
fr.paris.lutece.plugins.form.modules.datevalidators.web.DateValidatorsJspBean.doCreateDateCalculated(HttpServletRequest) 14 7 1
fr.paris.lutece.plugins.form.modules.datevalidators.web.DateValidatorsJspBean.addPermissions(HttpServletRequest,Object) 13 4 1

Averages.

Program NCSS NCSS average CCN average Javadocs average
1,544.00 7.11 2.65 1.00

Explanations

Explanations

[ package ] [ object ] [ method ] [ explanation ]

Non Commenting Source Statements (NCSS)

Statements for JavaNCSS are not statements as specified in the Java Language Specification but include all kinds of declarations too. Roughly spoken, NCSS is approximately equivalent to counting ';' and '{' characters in Java source files.

Not counted are empty statements, empty blocks or semicolons after closing brackets. Of course, comments don't get counted too. Closing brackets also never get counted, the same applies to blocks in general.

Examples
Package declaration package java.lang;
Import declaration import java.awt.*;
Class declaration
  • public class Foo {
  • public class Foo extends Bla {
Interface declaration public interface Able ; {
Field declaration
  • int a;
  • int a, b, c = 5, d = 6;
Method declaration
  • public void cry();
  • public void gib() throws DeadException {
Constructor declaration public Foo() {
Constructor invocation
  • this();
  • super();
Statement declaration
  • i = 0;
  • if (ok)
  • if (exit) {
  • if (3 == 4);
  • if (4 == 4) { ;
  • } else {
Label declaration fine :

In some cases consecutive semicolons are illegal according to the JLS but JavaNCSS still tolerates them (thought JavaNCSS is still more strict as 'javac'). Nevertheless they are never counted as two statements.

Cyclomatic Complexity Number (CCN)

CCN is also know as McCabe Metric. There exists a much hyped theory behind it based on graph theory, but it all comes down to simply counting 'if', 'for', 'while' statements etc. in a method. Whenever the control flow of a method splits, the "CCN counter" gets incremented by one.

Each method has a minimum value of 1 per default. For each of the following Java keywords/statements this value gets incremented by one:

  • if
  • for
  • while
  • case
  • catch

Also if the control flow of a method returns abortively the CCNvalue will be incremented by one:

  • if
  • for

An ordinary return at the end of method will not be counted.

Note that 'else', 'default', and 'finally' don't increment the CCN value any further. On the other hand, a simple method with a 'switch' statement and a huge block of 'case' statements can have a surprisingly high CCN value (still it has the same value when converting a 'switch' block to an equivalent sequence of 'if' statements).