Showing content from https://docs.pmd-code.org/latest/pmd_rules_jsp.html below:
Java Server Pages Rules | PMD Source Code Analyzer
Index of all built-in rules available for Java Server Pages
Table of Contents Best Practices
Rules which enforce generally accepted best practices.
- DontNestJsfInJstlIteration: Do not nest JSF component custom actions inside a custom action that iterates over its body.
- NoClassAttribute: Do not use an attribute called âclassâ. Use "styleclass" for CSS styles.
- NoHtmlComments: In a production system, HTML comments increase the payload between the application server to the â¦
- NoJspForward: Do not do a forward from within a JSP file.
Code Style
Rules which enforce a specific coding style.
Design
Rules that help you discover design issues.
- NoInlineScript: Avoid inlining HTML script content. Consider externalizing the HTML script using the âsrcâ attriâ¦
- NoInlineStyleInformation: Style information should be put in CSS files, not in JSPs. Therefore, donât use <B> or <FONT> tagâ¦
- NoLongScripts: Scripts should be part of Tag Libraries, rather than part of JSP pages.
- NoScriptlets: Scriptlets should be factored into Tag Libraries or JSP declarations, rather than being part of Jâ¦
Error Prone
Rules to detect constructs that are either broken, extremely confusing or prone to runtime errors.
- JspEncoding: A missing âmetaâ tag or page directive will trigger this rule, as well as a non-UTF-8 charset.
Security
Rules that flag potential security flaws.
- IframeMissingSrcAttribute: IFrames which are missing a src element can cause security information popups in IE if you are acâ¦
- NoUnsanitizedJSPExpression: Avoid using expressions without escaping / sanitizing. This could lead to cross site scripting - â¦
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4