Common rules for competitive migration rule sets

This Java code review rule is available to competitive migration rule sets. To learn how to get more information about a rule, see Displaying detailed help.

Rule Name Rule Description Automated Fix
Define separate interfaces for local and remote Enterprise JavaBeans (EJB) An interface cannot be local and remote at the same time. No

These JSP rules are available to competitive migration rule sets.

Rule Name Rule Description Automated Fix
Avoid nesting single or double quotes in JSP tags This rule detects JSP tags where single quotes are nested within single quotes or where double quotes are nested within double quotes. No
Avoid using a .jsp extension for JSP fragments

This rule detects JSP fragments included in another JSP file. If the JSP fragment file has a .jsp extension rather than a .jspf extension, the file is flagged.

The quick fix takes you to the refactor options to change the file name and all of its references.

No
Check for valid configuration of the getQueryString method in JSP welcome files

This rule detects request.getQueryString() method calls in JSP welcome files of a web module. These calls are flagged so that you can verify that the method is called correctly and avoid null values for the query string.

No
Do not redefine a taglib prefix using a different URI This rule detects JSP taglib directives that associate the same prefix attribute value with different uri attribute values. No
Do not use Java keywords in JSP and JSF expression language elements This rule detects JSP expression language (EL) elements with variables names that contain Java keywords or EL reserved keywords. No
Use correct case for tag attribute names This rule validates that JSP tag attributes match the case as defined in the tag library definition (TLD) file if it is available. No

This TLD rule is selected with the competitive migration rule sets and is found under the File Review category.

Rule Name Rule Description Automated Fix
Check custom tag library definition attribute names This rule validates custom tag library definition (TLD) file tag attribute names with the getter and setter methods in the tag class. No

These XML file review rules are available to competitive migration rule sets.

Rule Name Rule Description Automated Fix
Check Ehcache configuration Using Ehcache can result in stability issues if the cache is not explicitly sized. No
Define separate interfaces for local and remote Enterprise JavaBeans (EJB) An interface cannot be local and remote at the same time. No
Use of a default servlet requires WebSphere static file serving configuration This rule flags the use of a default servlet because static file serving is not enabled by default in WebSphere traditional. No