GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||
GeezerVison is showing docs.pmd-code.org — Error Prone | PMD Source Code Analyzer
Release date: 25-September-2026
Error ProneRules to detect constructs that are either broken, extremely confusing or prone to runtime errors.
Table of ContentsAvoidTrailingCommaSince: PMD 5.1 Priority: High (1) This rule helps improve code portability due to differences in browser treatment of trailing commas in object or array literals. This rule is defined by the following XPath expression: Example(s): This rule has the following properties:
Use this rule with the default properties by just referencing it: Use this rule and customize it: EqualComparisonSince: PMD 5.0 Priority: Medium (3) Using == in condition may lead to unexpected results, as the variables are automatically casted to be of the same type. The === operator avoids the casting. This rule is defined by the following XPath expression: Example(s): Use this rule by referencing it: InaccurateNumericLiteralSince: PMD 5.0 Priority: Medium High (2) The numeric literal will have a different value at runtime, which can happen if you provide too much precision in a floating point number. This may result in numeric calculations being in error. Numbers in JavaScript are represented by 64bit double-precision floating point numbers internally and that’s why there are some limits to the available precision of the number. See Number.isSafeInteger() and Number.EPSILON. Note: This rule was named InnaccurateNumericLiteral before PMD 7.4.0. This rule is defined by the following XPath expression: Example(s): Use this rule by referencing it: InnaccurateNumericLiteralDeprecated This rule has been renamed. Use instead: InaccurateNumericLiteral Deprecated Since: PMD 5.0 Priority: Medium High (2) The numeric literal will have a different value at runtime, which can happen if you provide too much precision in a floating point number. This may result in numeric calculations being in error. Numbers in JavaScript are represented by 64bit double-precision floating point numbers internally and that’s why there are some limits to the available precision of the number. See Number.isSafeInteger() and Number.EPSILON. Note: This rule was named InnaccurateNumericLiteral before PMD 7.4.0. This rule is defined by the following XPath expression: Example(s): Use this rule by referencing it: | |||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |