Disable the MagicNumber rule
This commit is contained in:
+1
-1
@@ -385,7 +385,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"comment": "If enabled, warns when unlabelled numeric values get used. Use named constants instead to improve code clarity.",
|
"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" },
|
"props": { "ignoreNumbers": [-1, 0, 1, 2], "severity": "IGNORE" },
|
||||||
"type": "MagicNumber"
|
"type": "MagicNumber"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user