mirror of
https://github.com/github/codeql.git
synced 2026-01-26 21:02:58 +01:00
18 lines
478 B
Plaintext
18 lines
478 B
Plaintext
/**
|
|
* @name Octal literal
|
|
* @description Octal numeric literals are a platform-specific extension and should not be used.
|
|
* @kind problem
|
|
* @problem.severity recommendation
|
|
* @id js/octal-literal
|
|
* @tags portability
|
|
* external/cwe/cwe-758
|
|
* @precision low
|
|
* @deprecated This query is prone to false positives. Deprecated since 1.17.
|
|
*/
|
|
|
|
import javascript
|
|
|
|
from NumberLiteral nl
|
|
where nl.getRawValue().regexpMatch("0\\d+")
|
|
select nl, "Do not use octal literals."
|