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.dila.service.impl 19 93 1328 83 290 52 609
fr.paris.lutece.plugins.dila.web 5 59 1218 64 330 73 138
fr.paris.lutece.plugins.dila.business.fichelocale.dao.impl 7 47 703 13 45 6 238
fr.paris.lutece.plugins.dila.business.fichelocale.dto 8 105 321 111 462 0 279
fr.paris.lutece.plugins.dila.utils 5 15 256 20 99 16 135
fr.paris.lutece.plugins.dila.service 22 90 251 106 523 0 731
fr.paris.lutece.plugins.dila.business.stylesheet.dao.impl 3 12 210 4 14 3 104
fr.paris.lutece.plugins.dila.business.donneescomplementaires.dao.impl 2 13 168 5 21 2 68
fr.paris.lutece.plugins.dila.service.search 2 18 152 4 28 22 66
fr.paris.lutece.plugins.dila.utils.constants 1 1 94 2 8 6 33
fr.paris.lutece.plugins.dila.business.donneescomplementaires.dto 4 26 75 28 117 0 103
fr.paris.lutece.plugins.dila.business.fichelocale.dao 7 41 69 48 224 0 231
fr.paris.lutece.plugins.dila.business.enums 5 14 52 0 0 0 188
fr.paris.lutece.plugins.dila.utils.http 3 5 41 4 18 0 99
fr.paris.lutece.plugins.dila.business.stylesheet 1 13 38 14 64 1 33
fr.paris.lutece.plugins.dila.daemon 1 2 37 2 6 0 33
fr.paris.lutece.plugins.dila.business.stylesheet.dto 2 11 36 13 52 0 66
fr.paris.lutece.plugins.dila.utils.filter 2 2 26 4 13 0 66
fr.paris.lutece.plugins.dila.business.stylesheet.dao 3 11 23 13 68 0 105
fr.paris.lutece.plugins.dila.business.donneescomplementaires.dao 2 10 19 12 56 0 66
fr.paris.lutece.plugins.dila.exception 1 2 7 3 12 0 34
Classes total Methods total NCSS total Javadocs Javadoc lines Single lines comment Multi lines comment
105 590 5124 553 2450 181 3425

Objects

Objects

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

TOP 30 classes containing the most NCSS.

Object NCSS Methods Classes Javadocs
fr.paris.lutece.plugins.dila.web.LocalCardJspBean 400 28 0 29
fr.paris.lutece.plugins.dila.web.ComplementaryDataJspBean 310 19 0 20
fr.paris.lutece.plugins.dila.web.StyleSheetJspBean 238 10 0 11
fr.paris.lutece.plugins.dila.business.fichelocale.dao.impl.XmlDAO 188 13 0 2
fr.paris.lutece.plugins.dila.business.fichelocale.dao.impl.LocalDAO 152 10 0 2
fr.paris.lutece.plugins.dila.utils.XMLConvertor 144 3 0 4
fr.paris.lutece.plugins.dila.service.impl.DilaValidationService 138 9 0 10
fr.paris.lutece.plugins.dila.service.impl.DilaCacheService 136 4 0 4
fr.paris.lutece.plugins.dila.service.impl.DilaExtractService 135 6 0 4
fr.paris.lutece.plugins.dila.business.stylesheet.dao.impl.DilaStyleSheetDAO 124 8 0 2
fr.paris.lutece.plugins.dila.service.impl.DilaXmlService 102 11 0 12
fr.paris.lutece.plugins.dila.business.fichelocale.dao.impl.LocalCardDAO 100 8 0 2
fr.paris.lutece.plugins.dila.business.fichelocale.dao.impl.LocalFolderDAO 94 7 0 2
fr.paris.lutece.plugins.dila.utils.constants.DilaConstants 93 1 0 2
fr.paris.lutece.plugins.dila.business.donneescomplementaires.dao.impl.ComplementaryDataDAO 91 8 0 2
fr.paris.lutece.plugins.dila.service.impl.DilaDownloadService 82 2 0 2
fr.paris.lutece.plugins.dila.business.fichelocale.dto.XmlDTO 73 18 0 17
fr.paris.lutece.plugins.dila.service.impl.DilaComplementaryDataService 62 8 0 9
fr.paris.lutece.plugins.dila.service.search.DilaXMLIndexer 61 9 0 2
fr.paris.lutece.plugins.dila.service.impl.DilaPivotLocalService 60 2 0 3
fr.paris.lutece.plugins.dila.service.impl.DilaBatchXMLService 59 3 0 1
fr.paris.lutece.plugins.dila.service.impl.DilaLocalCardService 58 8 0 1
fr.paris.lutece.plugins.dila.business.donneescomplementaires.dao.impl.ComplementaryDataLinkDAO 55 5 0 3
fr.paris.lutece.plugins.dila.service.search.DilaLocalIndexer 55 9 0 2
fr.paris.lutece.plugins.dila.business.fichelocale.dto.LocalCardDTO 53 19 0 20
fr.paris.lutece.plugins.dila.web.DilaLocalApp 53 1 0 2
fr.paris.lutece.plugins.dila.business.fichelocale.dto.LocalDTO 52 21 0 22
fr.paris.lutece.plugins.dila.service.impl.DilaLocalFolderService 52 7 0 8
fr.paris.lutece.plugins.dila.web.DilaApp 50 1 0 2
fr.paris.lutece.plugins.dila.business.fichelocale.dto.LocalFolderDTO 46 17 0 18

TOP 30 classes containing the most methods.

Object NCSS Methods Classes Javadocs
fr.paris.lutece.plugins.dila.web.LocalCardJspBean 400 28 0 29
fr.paris.lutece.plugins.dila.business.fichelocale.dto.LocalDTO 52 21 0 22
fr.paris.lutece.plugins.dila.business.fichelocale.dto.LocalCardDTO 53 19 0 20
fr.paris.lutece.plugins.dila.web.ComplementaryDataJspBean 310 19 0 20
fr.paris.lutece.plugins.dila.business.fichelocale.dto.XmlDTO 73 18 0 17
fr.paris.lutece.plugins.dila.business.fichelocale.dto.LocalFolderDTO 46 17 0 18
fr.paris.lutece.plugins.dila.business.donneescomplementaires.dto.ComplementaryDataDTO 33 13 0 14
fr.paris.lutece.plugins.dila.business.fichelocale.dao.impl.XmlDAO 188 13 0 2
fr.paris.lutece.plugins.dila.business.stylesheet.DilaStyleSheetAction 33 13 0 14
fr.paris.lutece.plugins.dila.business.fichelocale.dto.LocalFolderLinkDTO 31 12 0 13
fr.paris.lutece.plugins.dila.business.fichelocale.dao.IXmlDAO 13 12 0 13
fr.paris.lutece.plugins.dila.business.donneescomplementaires.dto.ComplementaryDataLinkDTO 27 11 0 12
fr.paris.lutece.plugins.dila.service.impl.DilaXmlService 102 11 0 12
fr.paris.lutece.plugins.dila.business.fichelocale.dto.LocalCardChapterDTO 26 10 0 11
fr.paris.lutece.plugins.dila.business.fichelocale.dao.impl.LocalDAO 152 10 0 2
fr.paris.lutece.plugins.dila.service.impl.DilaLocalService 32 10 0 2
fr.paris.lutece.plugins.dila.service.IDilaXmlService 11 10 0 11
fr.paris.lutece.plugins.dila.web.StyleSheetJspBean 238 10 0 11
fr.paris.lutece.plugins.dila.business.fichelocale.dao.ILocalDAO 10 9 0 10
fr.paris.lutece.plugins.dila.service.search.DilaLocalIndexer 55 9 0 2
fr.paris.lutece.plugins.dila.service.search.DilaXMLIndexer 61 9 0 2
fr.paris.lutece.plugins.dila.service.impl.DilaValidationService 138 9 0 10
fr.paris.lutece.plugins.dila.service.IDilaLocalService 10 9 0 10
fr.paris.lutece.plugins.dila.business.donneescomplementaires.dao.impl.ComplementaryDataDAO 91 8 0 2
fr.paris.lutece.plugins.dila.business.fichelocale.dao.impl.LocalCardDAO 100 8 0 2
fr.paris.lutece.plugins.dila.business.stylesheet.dao.impl.DilaStyleSheetDAO 124 8 0 2
fr.paris.lutece.plugins.dila.service.IDilaLocalCardService 9 8 0 9
fr.paris.lutece.plugins.dila.service.IDilaComplementaryDataService 9 8 0 9
fr.paris.lutece.plugins.dila.service.impl.DilaLocalCardService 58 8 0 1
fr.paris.lutece.plugins.dila.service.impl.DilaComplementaryDataService 62 8 0 9

Averages.

NCSS average Program NCSS Classes average Methods average Javadocs average
40.30 5,124.00 0.00 5.62 5.27

Methods

Methods

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

TOP 30 Methods containing the most NCSS.

Methods NCSS CCN Javadocs
fr.paris.lutece.plugins.dila.service.impl.DilaCacheService.buildDilaPage(String,Locale) 114 29 1
fr.paris.lutece.plugins.dila.service.impl.DilaDownloadService.download(String,String) 72 27 1
fr.paris.lutece.plugins.dila.service.impl.DilaXmlService.insertRssLinks(DocumentBuilder,Document,Locale) 59 13 1
fr.paris.lutece.plugins.dila.utils.XMLConvertor.convertCardToXML(LocalCardDTO,LocalCardChapterDTO) 56 8 1
fr.paris.lutece.plugins.dila.web.StyleSheetJspBean.getManageStyleSheet(HttpServletRequest) 48 7 1
fr.paris.lutece.plugins.dila.utils.XMLConvertor.convertFolderInXML(LocalFolderDTO,LocalFolderLinkDTO) 46 9 1
fr.paris.lutece.plugins.dila.service.impl.DilaExtractService.extractAll() 44 14 0
fr.paris.lutece.plugins.dila.web.StyleSheetJspBean.getData(MultipartHttpServletRequest,DilaStyleSheet,boolean) 41 24 1
fr.paris.lutece.plugins.dila.web.DilaApp.getPage(HttpServletRequest,int,Plugin) 39 7 1
fr.paris.lutece.plugins.dila.service.impl.DilaLocalCardService.insertCardLinks(String,DocumentBuilder,Document) 38 12 0
fr.paris.lutece.plugins.dila.business.stylesheet.dao.impl.DilaStyleSheetDAO.getDilaStyleSheetList(Integer,String) 37 9 0
fr.paris.lutece.plugins.dila.service.impl.DilaExtractService.extract(File,String,String,String) 37 9 0
fr.paris.lutece.plugins.dila.service.impl.DilaComplementaryDataService.insertComplementaryData(Long,Long,DocumentBuilder,Document) 35 8 1
fr.paris.lutece.plugins.dila.web.DilaLocalApp.getPage(HttpServletRequest,int,Plugin) 34 5 1
fr.paris.lutece.plugins.dila.service.impl.DilaLocalFolderService.insertFolderLinks(String,DocumentBuilder,Document) 33 10 1
fr.paris.lutece.plugins.dila.web.StyleSheetJspBean.doSaveStyleSheet(HttpServletRequest) 32 16 1
fr.paris.lutece.plugins.dila.service.impl.DilaBatchXMLService.buildDocument(File,AudienceCategoryEnum) 30 8 0
fr.paris.lutece.plugins.dila.business.fichelocale.dao.impl.XmlDAO.findByIdAndTypesAndAudience(String,String,Long) 29 5 0
fr.paris.lutece.plugins.dila.web.LocalCardJspBean.getManageLocalCard(HttpServletRequest) 29 5 1
fr.paris.lutece.plugins.dila.web.StyleSheetJspBean.doDownloadStyleSheet(HttpServletRequest,HttpServletResponse) 29 8 1
fr.paris.lutece.plugins.dila.web.ComplementaryDataJspBean.getManageComplementaryData(HttpServletRequest) 28 4 1
fr.paris.lutece.plugins.dila.service.impl.DilaPivotLocalService.findByCodePivot(String) 26 9 1
fr.paris.lutece.plugins.dila.service.impl.DilaPivotLocalService.insertPivots(DocumentBuilder,Document) 26 6 1
fr.paris.lutece.plugins.dila.web.ComplementaryDataJspBean.doCreateComplementaryData(HttpServletRequest) 26 8 1
fr.paris.lutece.plugins.dila.service.impl.DilaValidationService.validateRootFolder(LocalCardDTO,String) 24 10 1
fr.paris.lutece.plugins.dila.web.ComplementaryDataJspBean.doModifyComplementaryData(HttpServletRequest) 24 7 1
fr.paris.lutece.plugins.dila.business.fichelocale.dao.impl.LocalDAO.findAllByAudienceId(Long) 23 2 0
fr.paris.lutece.plugins.dila.service.search.DilaXMLIndexer.getDocument(XmlDTO) 23 2 1
fr.paris.lutece.plugins.dila.service.DilaStyleSheetResourceIdService.register() 23 1 1
fr.paris.lutece.plugins.dila.business.fichelocale.dao.impl.LocalDAO.findAll() 22 2 0

Averages.

Program NCSS NCSS average CCN average Javadocs average
5,124.00 6.11 1.98 0.77

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