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.saml.authentication.engine 4 28 349 18 116 39 132
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.checkers 6 11 177 5 31 16 203
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.metadata 3 16 161 3 16 17 99
fr.paris.lutece.plugins.mylutece.modules.saml.authentication 2 11 82 9 50 6 66
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.exceptions 7 28 77 0 0 28 246
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.config 2 9 72 1 3 2 66
fr.paris.lutece.plugins.mylutece.modules.saml.service 2 4 24 6 23 1 66
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.util 1 1 21 0 0 0 33
Classes total Methods total NCSS total Javadocs Javadoc lines Single lines comment Multi lines comment
27 108 963 42 239 109 911

Objects

Objects

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

TOP 30 classes containing the most NCSS.

Object NCSS Methods Classes Javadocs
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.engine.SAMLResponseManager 178 14 0 14
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.config.ConfigProperties 55 9 0 1
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.SAMLAuthentication 54 10 0 8
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.metadata.IDPMetadataManager 48 5 0 1
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.engine.BootStrap 44 8 0 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.checkers.SAMLAssertionChecker 38 4 0 3
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.metadata.MetadataManager 35 5 0 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.metadata.SPMetadataManager 31 6 0 2
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.engine.SAMLTokenExtractor 27 1 0 1
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.checkers.SignatureChecker 23 1 0 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.engine.SAMLTokenHandler 22 5 0 3
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.checkers.RequiredAttributesChecker 21 1 0 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.checkers.SAMLResponseChecker 19 3 0 2
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.checkers.CertificateChecker 18 1 0 0
fr.paris.lutece.plugins.mylutece.modules.saml.service.SAMLService 12 3 0 4
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.util.X509CertificateHelper 12 1 0 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.exceptions.SAMLCheckerException 10 4 0 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.exceptions.SAMLTokenExtractorException 10 4 0 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.exceptions.SAMLParsingException 10 4 0 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.exceptions.SignatureValidationException 10 4 0 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.exceptions.InvalidAttributeException 10 4 0 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.exceptions.SAMLReponseCheckerException 10 4 0 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.exceptions.CertificateValidationException 10 4 0 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.config.Constants 8 0 0 0
fr.paris.lutece.plugins.mylutece.modules.saml.service.SAMLPlugin 5 1 0 2
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.SAMLUser 3 1 0 1
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.checkers.SAMLChecker 2 1 0 0

TOP 30 classes containing the most methods.

Object NCSS Methods Classes Javadocs
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.engine.SAMLResponseManager 178 14 0 14
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.SAMLAuthentication 54 10 0 8
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.config.ConfigProperties 55 9 0 1
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.engine.BootStrap 44 8 0 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.metadata.SPMetadataManager 31 6 0 2
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.metadata.MetadataManager 35 5 0 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.metadata.IDPMetadataManager 48 5 0 1
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.engine.SAMLTokenHandler 22 5 0 3
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.checkers.SAMLAssertionChecker 38 4 0 3
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.exceptions.SAMLCheckerException 10 4 0 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.exceptions.SAMLTokenExtractorException 10 4 0 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.exceptions.SAMLParsingException 10 4 0 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.exceptions.SignatureValidationException 10 4 0 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.exceptions.InvalidAttributeException 10 4 0 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.exceptions.SAMLReponseCheckerException 10 4 0 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.exceptions.CertificateValidationException 10 4 0 0
fr.paris.lutece.plugins.mylutece.modules.saml.service.SAMLService 12 3 0 4
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.checkers.SAMLResponseChecker 19 3 0 2
fr.paris.lutece.plugins.mylutece.modules.saml.service.SAMLPlugin 5 1 0 2
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.checkers.RequiredAttributesChecker 21 1 0 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.checkers.SAMLChecker 2 1 0 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.checkers.SignatureChecker 23 1 0 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.checkers.CertificateChecker 18 1 0 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.util.X509CertificateHelper 12 1 0 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.engine.SAMLTokenExtractor 27 1 0 1
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.SAMLUser 3 1 0 1
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.config.Constants 8 0 0 0

Averages.

NCSS average Program NCSS Classes average Methods average Javadocs average
26.85 963.00 0.00 4.00 1.56

Methods

Methods

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

TOP 30 Methods containing the most NCSS.

Methods NCSS CCN Javadocs
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.engine.SAMLResponseManager.validateResponseContent() 74 33 1
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.metadata.MetadataManager.loadMetadata(InputStream) 27 9 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.engine.SAMLTokenExtractor.extractSAMLResponse(HttpServletRequest) 26 7 1
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.SAMLAuthentication.login(String,String,HttpServletRequest) 24 13 1
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.checkers.SignatureChecker.check(SAMLResponseManager) 22 9 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.metadata.IDPMetadataManager.validateContent() 21 9 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.checkers.RequiredAttributesChecker.check(SAMLResponseManager) 20 7 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.checkers.SAMLAssertionChecker.checkConditions(SAMLResponseManager) 19 7 1
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.metadata.IDPMetadataManager.getCertificateWhiteList() 18 5 1
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.checkers.CertificateChecker.check(SAMLResponseManager) 17 7 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.config.ConfigProperties.expandVariables() 17 6 1
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.metadata.SPMetadataManager.validateContent() 16 7 1
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.engine.SAMLResponseManager.getSignatureCertificate() 16 5 1
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.engine.SAMLResponseManager.getFilteredAssertionAttributes(RequestedAttribute) 15 4 1
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.SAMLAuthentication.createSAMLUser(SAMLTokenHandler) 14 2 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.engine.SAMLResponseManager.getLuteceUserName() 13 6 1
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.engine.BootStrap.BootStrap() 13 5 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.engine.SAMLTokenHandler.checkSAMLResponse(HttpServletRequest) 12 1 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.engine.BootStrap.initializeIDPMetaData(String) 12 3 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.util.X509CertificateHelper.buildX509Cert(String) 11 1 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.config.ConfigProperties.ConfigProperties() 10 5 0
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.engine.SAMLResponseManager.getFilteredAssertionAttributesValues(RequestedAttribute) 9 2 1
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.engine.SAMLResponseManager.getLuteceUserGroups() 9 4 1
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.engine.SAMLResponseManager.initialize(Response) 8 3 1
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.engine.SAMLResponseManager.getAttributeValue(Attribute) 8 3 1
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.engine.SAMLResponseManager.getAttributeValues(Attribute) 8 2 1
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.checkers.SAMLAssertionChecker.checkIssuer(SAMLResponseManager) 7 3 1
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.checkers.SAMLAssertionChecker.checkSubject(SAMLResponseManager) 7 3 1
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.checkers.SAMLResponseChecker.checkDestination(SAMLResponseManager) 7 3 1
fr.paris.lutece.plugins.mylutece.modules.saml.authentication.engine.SAMLResponseManager.validateResponseSchema() 7 3 1

Averages.

Program NCSS NCSS average CCN average Javadocs average
963.00 6.19 2.47 0.37

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