Affects PMD Version: 6.48.0
Rule: InaccurateNumericLiteral
Please provide the rule name and a link to the rule documentation:
https://pmd.github.io/latest/pmd_rules_ecmascript_errorprone.html#innaccuratenumericliteral
Description: JavaScript containing numeric literals with underscore separators triggers the rule.
Code Sample demonstrating the issue:
const value = 1_000_000;
Expected outcome:
PMD reports a violation but this is an integer. It's a false positive.
Running PMD through: Codacy
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