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.workflow.modules.evaluation.web 1 9 406 10 42 10 33
fr.paris.lutece.plugins.workflow.modules.evaluation.business.synthesis 6 49 362 60 266 8 221
fr.paris.lutece.plugins.workflow.modules.evaluation.business 5 50 263 55 216 2 165
fr.paris.lutece.plugins.workflow.modules.evaluation.service 5 23 229 28 108 11 165
fr.paris.lutece.plugins.workflow.modules.evaluation.business.evaluation 6 32 147 38 164 0 198
fr.paris.lutece.plugins.workflow.modules.evaluation.business.dossier 3 13 73 16 60 1 99
fr.paris.lutece.plugins.workflow.modules.evaluation.business.note 3 11 62 14 57 0 99
fr.paris.lutece.plugins.workflow.modules.evaluation.service.evaluation 4 12 61 16 76 4 132
fr.paris.lutece.plugins.workflow.modules.evaluation.service.synthesis 4 18 59 22 98 2 132
fr.paris.lutece.plugins.workflow.modules.evaluation.service.dossier 2 4 23 6 28 0 66
fr.paris.lutece.plugins.workflow.modules.evaluation.service.note 2 4 19 6 27 2 66
Classes total Methods total NCSS total Javadocs Javadoc lines Single lines comment Multi lines comment
41 225 1704 271 1142 40 1376

Objects

Objects

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

TOP 30 classes containing the most NCSS.

Object NCSS Methods Classes Javadocs
fr.paris.lutece.plugins.workflow.modules.evaluation.web.EvaluationTaskComponent 368 9 0 10
fr.paris.lutece.plugins.workflow.modules.evaluation.business.synthesis.SynthesisCriteriaDAO 177 12 0 13
fr.paris.lutece.plugins.workflow.modules.evaluation.business.TaskEvaluationCriteriaDAO 98 8 0 9
fr.paris.lutece.plugins.workflow.modules.evaluation.service.TaskEvaluation 83 6 0 7
fr.paris.lutece.plugins.workflow.modules.evaluation.business.synthesis.SynthesisCriteriaValueDAO 72 4 0 5
fr.paris.lutece.plugins.workflow.modules.evaluation.service.TaskEvaluationConfigService 63 4 0 5
fr.paris.lutece.plugins.workflow.modules.evaluation.business.TaskEvaluationConfigDAO 58 4 0 5
fr.paris.lutece.plugins.workflow.modules.evaluation.business.synthesis.SynthesisCriteria 51 14 2 20
fr.paris.lutece.plugins.workflow.modules.evaluation.business.TaskEvaluationConfig 51 20 0 21
fr.paris.lutece.plugins.workflow.modules.evaluation.business.dossier.DossierInformationComplementaireDAO 40 3 0 4
fr.paris.lutece.plugins.workflow.modules.evaluation.business.evaluation.EvaluationCriteriaValueDAO 37 3 0 4
fr.paris.lutece.plugins.workflow.modules.evaluation.business.evaluation.EvaluationDAO 36 3 0 4
fr.paris.lutece.plugins.workflow.modules.evaluation.business.TaskEvaluationCriteria 31 12 0 13
fr.paris.lutece.plugins.workflow.modules.evaluation.business.evaluation.Evaluation 31 12 0 13
fr.paris.lutece.plugins.workflow.modules.evaluation.business.note.NoteDAO 31 2 0 3
fr.paris.lutece.plugins.workflow.modules.evaluation.business.synthesis.SynthesisCriteriaValue 26 10 0 11
fr.paris.lutece.plugins.workflow.modules.evaluation.business.dossier.DossierInformationComplementaire 21 8 0 9
fr.paris.lutece.plugins.workflow.modules.evaluation.business.evaluation.EvaluationCriteriaValue 21 8 0 9
fr.paris.lutece.plugins.workflow.modules.evaluation.business.note.Note 18 7 0 8
fr.paris.lutece.plugins.workflow.modules.evaluation.service.evaluation.EvaluationService 18 3 0 4
fr.paris.lutece.plugins.workflow.modules.evaluation.service.synthesis.SynthesisCriteriaService 14 6 0 7
fr.paris.lutece.plugins.workflow.modules.evaluation.service.TaskEvaluationCriteriaService 14 6 0 7
fr.paris.lutece.plugins.workflow.modules.evaluation.service.synthesis.SynthesisCriteriaValueService 8 3 0 4
fr.paris.lutece.plugins.workflow.modules.evaluation.service.evaluation.EvaluationCriteriaValueService 8 3 0 4
fr.paris.lutece.plugins.workflow.modules.evaluation.business.ITaskEvaluationCriteriaDAO 7 6 0 7
fr.paris.lutece.plugins.workflow.modules.evaluation.business.synthesis.ISynthesisCriteriaDAO 7 6 0 7
fr.paris.lutece.plugins.workflow.modules.evaluation.service.synthesis.ISynthetisCriteriaService 7 6 0 7
fr.paris.lutece.plugins.workflow.modules.evaluation.service.ITaskEvaluationCriteriaService 7 6 0 7
fr.paris.lutece.plugins.workflow.modules.evaluation.service.dossier.DossierInformationComplementaireService 6 2 0 3
fr.paris.lutece.plugins.workflow.modules.evaluation.service.note.NoteService 6 2 0 3

TOP 30 classes containing the most methods.

Object NCSS Methods Classes Javadocs
fr.paris.lutece.plugins.workflow.modules.evaluation.business.TaskEvaluationConfig 51 20 0 21
fr.paris.lutece.plugins.workflow.modules.evaluation.business.synthesis.SynthesisCriteria 51 14 2 20
fr.paris.lutece.plugins.workflow.modules.evaluation.business.synthesis.SynthesisCriteriaDAO 177 12 0 13
fr.paris.lutece.plugins.workflow.modules.evaluation.business.TaskEvaluationCriteria 31 12 0 13
fr.paris.lutece.plugins.workflow.modules.evaluation.business.evaluation.Evaluation 31 12 0 13
fr.paris.lutece.plugins.workflow.modules.evaluation.business.synthesis.SynthesisCriteriaValue 26 10 0 11
fr.paris.lutece.plugins.workflow.modules.evaluation.web.EvaluationTaskComponent 368 9 0 10
fr.paris.lutece.plugins.workflow.modules.evaluation.business.dossier.DossierInformationComplementaire 21 8 0 9
fr.paris.lutece.plugins.workflow.modules.evaluation.business.evaluation.EvaluationCriteriaValue 21 8 0 9
fr.paris.lutece.plugins.workflow.modules.evaluation.business.TaskEvaluationCriteriaDAO 98 8 0 9
fr.paris.lutece.plugins.workflow.modules.evaluation.business.note.Note 18 7 0 8
fr.paris.lutece.plugins.workflow.modules.evaluation.business.ITaskEvaluationCriteriaDAO 7 6 0 7
fr.paris.lutece.plugins.workflow.modules.evaluation.business.synthesis.ISynthesisCriteriaDAO 7 6 0 7
fr.paris.lutece.plugins.workflow.modules.evaluation.service.synthesis.ISynthetisCriteriaService 7 6 0 7
fr.paris.lutece.plugins.workflow.modules.evaluation.service.synthesis.SynthesisCriteriaService 14 6 0 7
fr.paris.lutece.plugins.workflow.modules.evaluation.service.TaskEvaluation 83 6 0 7
fr.paris.lutece.plugins.workflow.modules.evaluation.service.ITaskEvaluationCriteriaService 7 6 0 7
fr.paris.lutece.plugins.workflow.modules.evaluation.service.TaskEvaluationCriteriaService 14 6 0 7
fr.paris.lutece.plugins.workflow.modules.evaluation.business.synthesis.SynthesisCriteriaValueDAO 72 4 0 5
fr.paris.lutece.plugins.workflow.modules.evaluation.business.TaskEvaluationConfigDAO 58 4 0 5
fr.paris.lutece.plugins.workflow.modules.evaluation.service.TaskEvaluationConfigService 63 4 0 5
fr.paris.lutece.plugins.workflow.modules.evaluation.business.dossier.DossierInformationComplementaireDAO 40 3 0 4
fr.paris.lutece.plugins.workflow.modules.evaluation.business.synthesis.ISynthesisCriteriaValueDAO 4 3 0 4
fr.paris.lutece.plugins.workflow.modules.evaluation.business.evaluation.IEvaluationDAO 4 3 0 4
fr.paris.lutece.plugins.workflow.modules.evaluation.business.evaluation.IEvaluationCriteriaValueDAO 4 3 0 4
fr.paris.lutece.plugins.workflow.modules.evaluation.business.evaluation.EvaluationDAO 36 3 0 4
fr.paris.lutece.plugins.workflow.modules.evaluation.business.evaluation.EvaluationCriteriaValueDAO 37 3 0 4
fr.paris.lutece.plugins.workflow.modules.evaluation.service.synthesis.SynthesisCriteriaValueService 8 3 0 4
fr.paris.lutece.plugins.workflow.modules.evaluation.service.synthesis.ISynthesisCriteriaValueService 4 3 0 4
fr.paris.lutece.plugins.workflow.modules.evaluation.service.evaluation.IEvaluationService 4 3 0 4

Averages.

NCSS average Program NCSS Classes average Methods average Javadocs average
35.51 1,704.00 0.05 5.49 6.61

Methods

Methods

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

TOP 30 Methods containing the most NCSS.

Methods NCSS CCN Javadocs
fr.paris.lutece.plugins.workflow.modules.evaluation.web.EvaluationTaskComponent.doSaveConfig(HttpServletRequest,Locale,ITask) 65 27 1
fr.paris.lutece.plugins.workflow.modules.evaluation.web.EvaluationTaskComponent.getTaskInformationXml(int,HttpServletRequest,Locale,ITask) 53 11 1
fr.paris.lutece.plugins.workflow.modules.evaluation.service.TaskEvaluation.processTask(int,HttpServletRequest,Locale) 51 9 1
fr.paris.lutece.plugins.workflow.modules.evaluation.web.EvaluationTaskComponent.getSynthesisCriteriaData(TaskEvaluationConfig,HttpServletRequest,ITask) 46 16 1
fr.paris.lutece.plugins.workflow.modules.evaluation.web.EvaluationTaskComponent.doValidateTask(int,String,HttpServletRequest,Locale,ITask) 44 33 1
fr.paris.lutece.plugins.workflow.modules.evaluation.service.TaskEvaluationConfigService.update(ITaskConfig) 34 16 1
fr.paris.lutece.plugins.workflow.modules.evaluation.business.synthesis.SynthesisCriteriaDAO.store(SynthesisCriteria,Plugin) 31 9 1
fr.paris.lutece.plugins.workflow.modules.evaluation.web.EvaluationTaskComponent.getCriteriasData(TaskEvaluationConfig,HttpServletRequest,ITask) 28 11 1
fr.paris.lutece.plugins.workflow.modules.evaluation.web.EvaluationTaskComponent.getDisplayTaskInformation(int,HttpServletRequest,Locale,ITask) 27 6 1
fr.paris.lutece.plugins.workflow.modules.evaluation.business.synthesis.SynthesisCriteriaValueDAO.load(int,int,int,Plugin) 26 4 1
fr.paris.lutece.plugins.workflow.modules.evaluation.web.EvaluationTaskComponent.getDisplayConfigForm(HttpServletRequest,Locale,ITask) 23 6 1
fr.paris.lutece.plugins.workflow.modules.evaluation.business.synthesis.SynthesisCriteriaDAO.selectByIdTask(int,Plugin) 20 2 1
fr.paris.lutece.plugins.workflow.modules.evaluation.business.synthesis.SynthesisCriteriaDAO.load(int,Plugin) 19 3 1
fr.paris.lutece.plugins.workflow.modules.evaluation.business.TaskEvaluationConfigDAO.load(int) 19 2 1
fr.paris.lutece.plugins.workflow.modules.evaluation.business.TaskEvaluationCriteriaDAO.selectByIdTask(int,Plugin) 19 2 1
fr.paris.lutece.plugins.workflow.modules.evaluation.business.dossier.DossierInformationComplementaireDAO.load(int,String,Plugin) 17 2 1
fr.paris.lutece.plugins.workflow.modules.evaluation.business.evaluation.EvaluationCriteriaValueDAO.load(int,int,int,Plugin) 17 2 1
fr.paris.lutece.plugins.workflow.modules.evaluation.business.synthesis.SynthesisCriteriaValueDAO.insert(SynthesisCriteriaValue,Plugin) 16 2 1
fr.paris.lutece.plugins.workflow.modules.evaluation.business.evaluation.EvaluationDAO.load(int,int,Plugin) 16 2 1
fr.paris.lutece.plugins.workflow.modules.evaluation.business.TaskEvaluationCriteriaDAO.load(int,Plugin) 16 2 1
fr.paris.lutece.plugins.workflow.modules.evaluation.business.TaskEvaluationConfigDAO.store(TaskEvaluationConfig) 15 1 1
fr.paris.lutece.plugins.workflow.modules.evaluation.business.note.NoteDAO.selectNote(Plugin) 15 2 1
fr.paris.lutece.plugins.workflow.modules.evaluation.business.synthesis.SynthesisCriteriaDAO.insert(SynthesisCriteria,Plugin) 14 2 1
fr.paris.lutece.plugins.workflow.modules.evaluation.business.TaskEvaluationConfigDAO.insert(TaskEvaluationConfig) 14 1 1
fr.paris.lutece.plugins.workflow.modules.evaluation.business.synthesis.SynthesisCriteriaValueDAO.deleteByEvaluation(int,int,Plugin) 13 1 1
fr.paris.lutece.plugins.workflow.modules.evaluation.business.note.NoteDAO.load(int,Plugin) 13 2 1
fr.paris.lutece.plugins.workflow.modules.evaluation.business.synthesis.SynthesisCriteriaDAO.loadValuesForCriteria(int,Plugin) 12 2 1
fr.paris.lutece.plugins.workflow.modules.evaluation.business.TaskEvaluationCriteriaDAO.insert(TaskEvaluationCriteria,Plugin) 12 1 1
fr.paris.lutece.plugins.workflow.modules.evaluation.service.TaskEvaluation.getTaskFormEntries(Locale) 12 4 1
fr.paris.lutece.plugins.workflow.modules.evaluation.business.synthesis.SynthesisCriteriaDAO.newPosition(Plugin,int) 11 2 1

Averages.

Program NCSS NCSS average CCN average Javadocs average
1,704.00 5.34 1.75 0.99

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).