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.mylutece.modules.wssodatabase.authentication.business 16 148 813 164 907 110 538
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.web 1 31 730 32 180 25 36
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.service 3 11 274 14 63 28 102
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.util 2 21 220 23 118 3 67
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication 2 18 98 20 100 4 74
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.service 2 4 90 6 29 18 66
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.service.daemon 1 2 10 3 10 2 33
Classes total Methods total NCSS total Javadocs Javadoc lines Single lines comment Multi lines comment
27 235 2235 262 1407 190 916

Objects

Objects

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

TOP 30 classes containing the most NCSS.

Object NCSS Methods Classes Javadocs
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.web.WssodatabaseJspBean 667 31 0 32
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.WssoUserDAO 236 14 0 15
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.util.LdapBrowser 171 16 1 17
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.service.ImportWssoDatabaseUserService 169 7 0 8
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.IdxWSSODatabaseDAO 117 12 0 13
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.WssoProfilDAO 98 11 0 12
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.IdxWSSODatabaseAuthentication 77 17 0 18
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.service.WssoUsersFileGeneratorService 69 3 0 4
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.service.WssoDatabaseService 51 3 0 4
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.WssoProfilFilter 45 9 0 10
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.WssoUserHome 38 13 0 14
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.WssoUserRoleDAO 38 6 0 7
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.WssoUser 36 13 0 14
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.IdxWSSODatabaseHome 25 12 0 13
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.util.LdapUtil 25 5 0 6
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.WssoProfilHome 23 10 0 11
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.IWssoUserDAO 13 12 0 13
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.IIdxWSSODatabaseDAO 12 11 0 12
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.WssoProfil 12 5 0 6
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.WssoUserRoleHome 11 5 0 6
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.WssoUserRoleRemovalListener 11 2 0 3
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.IWssoProfilDAO 10 9 0 10
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.service.daemon.ExportWssoUsersDaemon 5 2 0 3
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.IWssoUserRoleDAO 5 4 0 5
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.IdxWSSODatabaseUser 4 1 0 2
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.service.WssoDatabasePlugin 4 1 0 2
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.service.AutoExportWssoUsersFile 3 1 0 2

TOP 30 classes containing the most methods.

Object NCSS Methods Classes Javadocs
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.web.WssodatabaseJspBean 667 31 0 32
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.IdxWSSODatabaseAuthentication 77 17 0 18
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.util.LdapBrowser 171 16 1 17
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.WssoUserDAO 236 14 0 15
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.WssoUser 36 13 0 14
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.WssoUserHome 38 13 0 14
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.IdxWSSODatabaseHome 25 12 0 13
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.IdxWSSODatabaseDAO 117 12 0 13
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.IWssoUserDAO 13 12 0 13
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.WssoProfilDAO 98 11 0 12
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.IIdxWSSODatabaseDAO 12 11 0 12
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.WssoProfilHome 23 10 0 11
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.WssoProfilFilter 45 9 0 10
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.IWssoProfilDAO 10 9 0 10
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.service.ImportWssoDatabaseUserService 169 7 0 8
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.WssoUserRoleDAO 38 6 0 7
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.WssoUserRoleHome 11 5 0 6
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.WssoProfil 12 5 0 6
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.util.LdapUtil 25 5 0 6
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.IWssoUserRoleDAO 5 4 0 5
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.service.WssoUsersFileGeneratorService 69 3 0 4
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.service.WssoDatabaseService 51 3 0 4
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.service.daemon.ExportWssoUsersDaemon 5 2 0 3
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.WssoUserRoleRemovalListener 11 2 0 3
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.service.AutoExportWssoUsersFile 3 1 0 2
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.IdxWSSODatabaseUser 4 1 0 2
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.service.WssoDatabasePlugin 4 1 0 2

Averages.

NCSS average Program NCSS Classes average Methods average Javadocs average
73.15 2,235.00 0.04 8.70 9.70

Methods

Methods

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

TOP 30 Methods containing the most NCSS.

Methods NCSS CCN Javadocs
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.service.ImportWssoDatabaseUserService.readLineOfCSVFile(String[],int,Locale,String) 88 22 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.WssoUserDAO.findWssoUserssByLastNameOrFirtNameOrEmailByProfil(String,String,String,String,Plugin) 54 22 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.WssoUserDAO.findWssoUsersByLastNameOrFirstNameOrEmailByProfil(String,String,String,Plugin) 53 22 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.util.LdapBrowser.getUserList(String,String,String) 52 13 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.web.WssodatabaseJspBean.getManageProfils(HttpServletRequest) 49 12 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.util.LdapBrowser.getUserPublicData(String) 49 15 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.web.WssodatabaseJspBean.getManageUsersProfil(HttpServletRequest) 44 8 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.web.WssodatabaseJspBean.doExportUsers(HttpServletRequest,HttpServletResponse) 39 6 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.web.WssodatabaseJspBean.setItemNavigator(String,String,List) 33 9 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.web.WssodatabaseJspBean.getManageProfilsUser(HttpServletRequest) 32 9 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.service.WssoDatabaseService.getXmlFromUser(WssoUser,boolean,boolean,boolean,IAttribute,Locale) 29 8 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.service.ImportWssoDatabaseUserService.checkLineOfCSVFile(String[],int,Locale) 29 9 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.web.WssodatabaseJspBean.doImportUsersFromFile(HttpServletRequest) 26 10 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.web.WssodatabaseJspBean.getCreateUser(HttpServletRequest) 25 8 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.web.WssodatabaseJspBean.getManageRolesProfil(HttpServletRequest) 25 8 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.service.WssoUsersFileGeneratorService.createXmlFile(Plugin) 24 4 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.service.WssoUsersFileGeneratorService.getXml(Plugin) 23 2 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.IdxWSSODatabaseAuthentication.getHttpAuthenticatedUser(HttpServletRequest) 20 9 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.web.WssodatabaseJspBean.getManageUsers(HttpServletRequest) 19 2 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.web.WssodatabaseJspBean.getManageRolesUser(HttpServletRequest) 19 1 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.web.WssodatabaseJspBean.getModifyProfil(HttpServletRequest) 17 5 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.IdxWSSODatabaseDAO.findUsersList(Plugin,LuteceAuthentication) 17 2 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.web.WssodatabaseJspBean.doCreateUser(HttpServletRequest) 16 7 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.web.WssodatabaseJspBean.doManageUsersProfil(HttpServletRequest) 16 8 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.IdxWSSODatabaseDAO.findUserByGuid(String,Plugin,LuteceAuthentication) 16 3 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.IdxWSSODatabaseDAO.findWssoUsersForProfil(String,Plugin) 16 2 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.WssoUserDAO.selectWssoUsersListForRole(int,Plugin) 16 2 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.WssoUserDAO.selectWssoUserListForGuid(String,Plugin) 16 2 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.web.WssodatabaseJspBean.doUnassignUserProfil(HttpServletRequest) 15 9 1
fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.WssoUserDAO.load(int,Plugin) 15 2 1

Averages.

Program NCSS NCSS average CCN average Javadocs average
2,235.00 7.13 2.31 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).