Apache logging services logo Apache log4j logo

Checkstyle Results

The following document contains the results of Checkstyle 6.11.2 with /Users/rgoers/projects/apache/logging/log4j/log4j2/log4j-2.9/log4j-web/../checkstyle.xml ruleset. rss feed

Summary

Files  Info  Warnings  Errors
12 0 0 42

Details

log4j2.component.properties

Severity Category Rule Message Line
 Error misc NewlineAtEndOfFile File does not end with a newline.

org/apache/logging/log4j/web/Log4jServletContainerInitializer.java

Severity Category Rule Message Line
 Error imports ImportControl Disallowed import - javax.servlet.DispatcherType. 21
 Error imports ImportControl Disallowed import - javax.servlet.FilterRegistration. 22
 Error imports ImportControl Disallowed import - javax.servlet.ServletContainerInitializer. 23
 Error imports ImportControl Disallowed import - javax.servlet.ServletContext. 24
 Error imports ImportControl Disallowed import - javax.servlet.ServletException. 25

org/apache/logging/log4j/web/Log4jServletContextListener.java

Severity Category Rule Message Line
 Error imports ImportControl Disallowed import - javax.servlet.ServletContext. 22
 Error imports ImportControl Disallowed import - javax.servlet.ServletContextEvent. 23
 Error imports ImportControl Disallowed import - javax.servlet.ServletContextListener. 24
 Error whitespace FileTabCharacter File contains tab characters (this is the first instance). 38
 Error sizes LineLength Line is longer than 120 characters (found 124). 78

org/apache/logging/log4j/web/Log4jServletFilter.java

Severity Category Rule Message Line
 Error imports ImportControl Disallowed import - javax.servlet.Filter. 20
 Error imports ImportControl Disallowed import - javax.servlet.FilterChain. 21
 Error imports ImportControl Disallowed import - javax.servlet.FilterConfig. 22
 Error imports ImportControl Disallowed import - javax.servlet.ServletContext. 23
 Error imports ImportControl Disallowed import - javax.servlet.ServletException. 24
 Error imports ImportControl Disallowed import - javax.servlet.ServletRequest. 25
 Error imports ImportControl Disallowed import - javax.servlet.ServletResponse. 26
 Error coding DeclarationOrder Variable access definition in wrong order. 46

org/apache/logging/log4j/web/Log4jWebInitializerImpl.java

Severity Category Rule Message Line
 Error imports ImportControl Disallowed import - javax.servlet.ServletContext. 28
 Error sizes LineLength Line is longer than 120 characters (found 128). 176

org/apache/logging/log4j/web/ServletRequestThreadContext.java

Severity Category Rule Message Line
 Error imports ImportControl Disallowed import - javax.servlet.ServletRequest. 21
 Error imports ImportControl Disallowed import - javax.servlet.http.HttpServletRequest. 22
 Error javadoc JavadocType Missing a Javadoc comment. 26
 Error design HideUtilityClassConstructor Utility classes should not have a public or default constructor. 26

org/apache/logging/log4j/web/WebLoggerContextUtils.java

Severity Category Rule Message Line
 Error imports ImportControl Disallowed import - javax.servlet.ServletContext. 21
 Error coding DeclarationOrder Static variable definition in wrong order. 39

org/apache/logging/log4j/web/WebLookup.java

Severity Category Rule Message Line
 Error imports ImportControl Disallowed import - javax.servlet.ServletContext. 21
 Error javadoc JavadocType Missing a Javadoc comment. 28

org/apache/logging/log4j/web/appender/ServletAppender.java

Severity Category Rule Message Line
 Error javadoc JavadocPackage Missing package-info.java file.
 Error imports ImportControl Disallowed import - javax.servlet.ServletContext. 21
 Error javadoc JavadocStyle First sentence should end with a period. 34
 Error design FinalClass Class ServletAppender should be declared as final. 37
 Error javadoc JavadocType Missing a Javadoc comment. 40
 Error whitespace FileTabCharacter File contains tab characters (this is the first instance). 40
 Error sizes LineLength Line is longer than 120 characters (found 131). 64
 Error sizes LineLength Line is longer than 120 characters (found 128). 68
 Error sizes LineLength Line is longer than 120 characters (found 128). 77
 Error javadoc JavadocMethod Expected @param tag for 'logThrowables'. 79
 Error coding DeclarationOrder Instance variable definition in wrong order. 90
 Error coding DeclarationOrder Instance variable definition in wrong order. 91
 Error coding DeclarationOrder Constructor definition in wrong order. 93