A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/4716 below:

[javascript] InaccurateNumericLiteral with number 259200000 · Issue #4716 · pmd/pmd · GitHub

Affects PMD Version:
6.55.0

Rule:
https://docs.pmd-code.org/latest/pmd_rules_ecmascript_errorprone.html#innaccuratenumericliteral

Description:
A seemingly normal constant is triggered by this rule. Tried different names for the constant also, but to no avail.

Code Sample demonstrating the issue:

const USER_LIST_TRANSACTION_EXP_MS = 259200000;

Expected outcome:
PMD reports a violation at line ..., but that's wrong. That'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