Add a rule forbidding long numbers without separators.

This commit is contained in:
EliteMasterEric
2026-04-06 04:18:09 -06:00
committed by Hundrec
parent 71d7fe0cf6
commit 17cfd2e2f8
+12
View File
@@ -345,6 +345,18 @@
},
"type": "LocalVariableName"
},
{
"comment": "Puts a warning on long numbers without separators. 1000000 is invalid and 1_000_000 is valid.",
"props": {
"severity": "INFO",
"ignoreNumbers": [],
"checkBinary": false,
"checkHexadecimal": false
},
"type": "LongNumber"
},
{
"comment": "If enabled, warns when unlabelled numeric values get used. Use named constants instead to improve code clarity.",
"props": { "ignoreNumbers": [-1, 0, 1, 2], "severity": "INFO" },