2026-04-10
- corvée: met à jour les deps - corvée: formate
This commit is contained in:
parent
00f87fedcd
commit
d50de6d534
85 changed files with 132090 additions and 31346 deletions
203
mago-schema.json
203
mago-schema.json
|
|
@ -17,7 +17,10 @@
|
|||
"baseline": {
|
||||
"default": null,
|
||||
"description": "Path to a baseline file to ignore listed issues.",
|
||||
"type": ["string", "null"]
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"baseline-variant": {
|
||||
"$ref": "#/$defs/BaselineVariant",
|
||||
|
|
@ -135,7 +138,10 @@
|
|||
},
|
||||
"perform-heuristic-checks": {
|
||||
"description": "**Deprecated**: Use `check-missing-override` and `find-unused-parameters` instead.\n\nWhen set to `true`, enables both `check-missing-override` and `find-unused-parameters`.\nWhen set to `false`, disables both.\n\nThis option is kept for backwards compatibility with existing configurations.",
|
||||
"type": ["boolean", "null"],
|
||||
"type": [
|
||||
"boolean",
|
||||
"null"
|
||||
],
|
||||
"writeOnly": true
|
||||
},
|
||||
"performance": {
|
||||
|
|
@ -200,11 +206,18 @@
|
|||
"type": "object"
|
||||
},
|
||||
"ArrayStyleOption": {
|
||||
"enum": ["short", "long"],
|
||||
"enum": [
|
||||
"long",
|
||||
"short"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"AssertionStyle": {
|
||||
"enum": ["static", "self_", "this"],
|
||||
"enum": [
|
||||
"self_",
|
||||
"static",
|
||||
"this"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"BaselineVariant": {
|
||||
|
|
@ -224,7 +237,11 @@
|
|||
},
|
||||
"BraceStyle": {
|
||||
"description": "Specifies brace placement style for various constructs.\n\n- `SameLine`: Opening brace on the same line as the declaration\n- `NextLine`: Opening brace on the next line for single-line signatures;\n on the same line when the signature breaks across multiple lines\n- `AlwaysNextLine`: Opening brace always on the next line, regardless of\n whether the signature breaks",
|
||||
"enum": ["same_line", "next_line", "always_next_line"],
|
||||
"enum": [
|
||||
"always_next_line",
|
||||
"next_line",
|
||||
"same_line"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"DisallowedEntry": {
|
||||
|
|
@ -237,13 +254,18 @@
|
|||
"description": "Entry with name and optional help message.",
|
||||
"properties": {
|
||||
"help": {
|
||||
"type": ["string", "null"]
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": ["name"],
|
||||
"required": [
|
||||
"name"
|
||||
],
|
||||
"type": "object"
|
||||
}
|
||||
],
|
||||
|
|
@ -251,7 +273,12 @@
|
|||
},
|
||||
"EndOfLine": {
|
||||
"description": "Specifies the style of line endings.",
|
||||
"enum": ["auto", "lf", "crlf", "cr"],
|
||||
"enum": [
|
||||
"auto",
|
||||
"cr",
|
||||
"crlf",
|
||||
"lf"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"FormatterConfiguration": {
|
||||
|
|
@ -735,7 +762,10 @@
|
|||
"baseline": {
|
||||
"default": null,
|
||||
"description": "Path to a baseline file to ignore listed issues.",
|
||||
"type": ["string", "null"]
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"baseline-variant": {
|
||||
"$ref": "#/$defs/BaselineVariant",
|
||||
|
|
@ -815,7 +845,10 @@
|
|||
"type": "array"
|
||||
}
|
||||
},
|
||||
"required": ["code", "in"],
|
||||
"required": [
|
||||
"code",
|
||||
"in"
|
||||
],
|
||||
"type": "object"
|
||||
}
|
||||
],
|
||||
|
|
@ -852,7 +885,10 @@
|
|||
"baseline": {
|
||||
"default": null,
|
||||
"description": "Path to a baseline file to ignore listed issues.",
|
||||
"type": ["string", "null"]
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"baseline-variant": {
|
||||
"$ref": "#/$defs/BaselineVariant",
|
||||
|
|
@ -994,11 +1030,11 @@
|
|||
"level": "Help"
|
||||
},
|
||||
"halstead": {
|
||||
"difficulty-threshold": 12.0,
|
||||
"effort-threshold": 5000.0,
|
||||
"difficulty-threshold": 12,
|
||||
"effort-threshold": 5000,
|
||||
"enabled": true,
|
||||
"level": "Warning",
|
||||
"volume-threshold": 1000.0
|
||||
"volume-threshold": 1000
|
||||
},
|
||||
"identity-comparison": {
|
||||
"enabled": true,
|
||||
|
|
@ -1514,7 +1550,9 @@
|
|||
},
|
||||
"tainted-data-to-sink": {
|
||||
"enabled": true,
|
||||
"known-sink-functions": ["printf"],
|
||||
"known-sink-functions": [
|
||||
"printf"
|
||||
],
|
||||
"level": "Error"
|
||||
},
|
||||
"too-many-enum-cases": {
|
||||
|
|
@ -1585,12 +1623,19 @@
|
|||
"type": "object"
|
||||
},
|
||||
"MethodChainBreakingStyle": {
|
||||
"enum": ["same_line", "next_line"],
|
||||
"enum": [
|
||||
"next_line",
|
||||
"same_line"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"NullTypeHint": {
|
||||
"description": "Specifies null type hint style.",
|
||||
"enum": ["null_pipe", "null_pipe_last", "question"],
|
||||
"enum": [
|
||||
"null_pipe",
|
||||
"null_pipe_last",
|
||||
"question"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"PHPVersion": {
|
||||
|
|
@ -1697,7 +1742,10 @@
|
|||
"type": "array"
|
||||
}
|
||||
},
|
||||
"required": ["namespace", "permit"],
|
||||
"required": [
|
||||
"namespace",
|
||||
"permit"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"PerimeterSettings": {
|
||||
|
|
@ -1747,14 +1795,22 @@
|
|||
"$ref": "#/$defs/Path"
|
||||
}
|
||||
},
|
||||
"required": ["path", "kinds"],
|
||||
"required": [
|
||||
"kinds",
|
||||
"path"
|
||||
],
|
||||
"type": "object"
|
||||
}
|
||||
]
|
||||
},
|
||||
"PermittedDependencyKind": {
|
||||
"description": "Represents the specific types of symbols allowed from a path.",
|
||||
"enum": ["class-like", "function", "constant", "attribute"],
|
||||
"enum": [
|
||||
"attribute",
|
||||
"class-like",
|
||||
"constant",
|
||||
"function"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"RuleSettings": {
|
||||
|
|
@ -2654,7 +2710,9 @@
|
|||
"type": "array"
|
||||
},
|
||||
"known-sink-functions": {
|
||||
"default": ["printf"],
|
||||
"default": [
|
||||
"printf"
|
||||
],
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
|
|
@ -2758,7 +2816,10 @@
|
|||
"description": "Maximum cyclomatic complexity allowed for a single method.\n\nWhen set, each method in a class-like is checked individually against this threshold,\nin addition to the class-level `threshold` check.\n\nDefault: `None` (methods are only checked as part of the class-level total).",
|
||||
"format": "uint",
|
||||
"minimum": 0,
|
||||
"type": ["integer", "null"]
|
||||
"type": [
|
||||
"integer",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"threshold": {
|
||||
"default": 15,
|
||||
|
|
@ -3308,7 +3369,10 @@
|
|||
"description": "Maximum nesting depth allowed inside a single function, method, closure, or arrow function.\n\nWhen set, each function-like body is checked independently against this threshold,\nwith nesting counted from the function body (not the file root).\n\nDefault: `None` (function-like bodies are only checked against the global `threshold`).",
|
||||
"format": "uint",
|
||||
"minimum": 0,
|
||||
"type": ["integer", "null"]
|
||||
"type": [
|
||||
"integer",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"level": {
|
||||
"$ref": "#/$defs/Level",
|
||||
|
|
@ -3331,7 +3395,10 @@
|
|||
"format": "uint8",
|
||||
"maximum": 255,
|
||||
"minimum": 0,
|
||||
"type": ["integer", "null"]
|
||||
"type": [
|
||||
"integer",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"enabled": {
|
||||
"default": true,
|
||||
|
|
@ -3401,12 +3468,12 @@
|
|||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"difficulty-threshold": {
|
||||
"default": 12.0,
|
||||
"default": 12,
|
||||
"format": "double",
|
||||
"type": "number"
|
||||
},
|
||||
"effort-threshold": {
|
||||
"default": 5000.0,
|
||||
"default": 5000,
|
||||
"format": "double",
|
||||
"type": "number"
|
||||
},
|
||||
|
|
@ -3425,7 +3492,7 @@
|
|||
"default": "Warning"
|
||||
},
|
||||
"volume-threshold": {
|
||||
"default": 1000.0,
|
||||
"default": 1000,
|
||||
"format": "double",
|
||||
"type": "number"
|
||||
}
|
||||
|
|
@ -5417,11 +5484,11 @@
|
|||
"halstead": {
|
||||
"$ref": "#/$defs/RuleSettings20",
|
||||
"default": {
|
||||
"difficulty-threshold": 12.0,
|
||||
"effort-threshold": 5000.0,
|
||||
"difficulty-threshold": 12,
|
||||
"effort-threshold": 5000,
|
||||
"enabled": true,
|
||||
"level": "Warning",
|
||||
"volume-threshold": 1000.0
|
||||
"volume-threshold": 1000
|
||||
}
|
||||
},
|
||||
"identity-comparison": {
|
||||
|
|
@ -6303,7 +6370,9 @@
|
|||
"$ref": "#/$defs/RuleSettings136",
|
||||
"default": {
|
||||
"enabled": true,
|
||||
"known-sink-functions": ["printf"],
|
||||
"known-sink-functions": [
|
||||
"printf"
|
||||
],
|
||||
"level": "Error"
|
||||
}
|
||||
},
|
||||
|
|
@ -6423,7 +6492,9 @@
|
|||
"type": "array"
|
||||
},
|
||||
"extensions": {
|
||||
"default": ["php"],
|
||||
"default": [
|
||||
"php"
|
||||
],
|
||||
"description": "File extensions to filter by.\n\nDefaults to `[\".php\"]`.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
|
|
@ -6461,7 +6532,9 @@
|
|||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": ["workspace"],
|
||||
"required": [
|
||||
"workspace"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"StructuralInheritanceConstraint": {
|
||||
|
|
@ -6504,27 +6577,42 @@
|
|||
"items": {
|
||||
"$ref": "#/$defs/StructuralSymbolKind"
|
||||
},
|
||||
"type": ["array", "null"]
|
||||
"type": [
|
||||
"array",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"must-be-abstract": {
|
||||
"default": null,
|
||||
"description": "If true, the symbol must be declared `abstract`.",
|
||||
"type": ["boolean", "null"]
|
||||
"type": [
|
||||
"boolean",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"must-be-final": {
|
||||
"default": null,
|
||||
"description": "If true, the symbol must be declared `final`.",
|
||||
"type": ["boolean", "null"]
|
||||
"type": [
|
||||
"boolean",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"must-be-named": {
|
||||
"default": null,
|
||||
"description": "Optional naming pattern the symbol's name must match.",
|
||||
"type": ["string", "null"]
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"must-be-readonly": {
|
||||
"default": null,
|
||||
"description": "If true, the symbol must be declared `readonly`.",
|
||||
"type": ["boolean", "null"]
|
||||
"type": [
|
||||
"boolean",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"must-extend": {
|
||||
"anyOf": [
|
||||
|
|
@ -6577,7 +6665,10 @@
|
|||
"not-on": {
|
||||
"default": null,
|
||||
"description": "An optional exclusion pattern; if the namespace matches this, the rule is skipped.",
|
||||
"type": ["string", "null"]
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"on": {
|
||||
"default": "",
|
||||
|
|
@ -6587,7 +6678,10 @@
|
|||
"reason": {
|
||||
"default": null,
|
||||
"description": "A human-readable reason for this rule.",
|
||||
"type": ["string", "null"]
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"target": {
|
||||
"anyOf": [
|
||||
|
|
@ -6619,7 +6713,15 @@
|
|||
"type": "object"
|
||||
},
|
||||
"StructuralSymbolKind": {
|
||||
"enum": ["class-like", "class", "interface", "trait", "enum", "constant", "function"],
|
||||
"enum": [
|
||||
"class",
|
||||
"class-like",
|
||||
"constant",
|
||||
"enum",
|
||||
"function",
|
||||
"interface",
|
||||
"trait"
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
|
|
@ -6682,7 +6784,10 @@
|
|||
"editor-url": {
|
||||
"default": null,
|
||||
"description": "Editor URL template for OSC 8 terminal hyperlinks on file paths in diagnostics.\n\nWhen set, file paths in diagnostic output become clickable links in terminals\nthat support OSC 8 hyperlinks (e.g., iTerm2, Wezterm, Kitty, Windows Terminal).\n\nSupported placeholders:\n- `%file%` — absolute file path\n- `%line%` — line number\n- `%column%` — column number\n\nCan be set via `MAGO_EDITOR_URL` environment variable or `editor-url` in `mago.toml`.",
|
||||
"type": ["string", "null"]
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"formatter": {
|
||||
"$ref": "#/$defs/FormatterConfiguration",
|
||||
|
|
@ -6830,11 +6935,11 @@
|
|||
"level": "Help"
|
||||
},
|
||||
"halstead": {
|
||||
"difficulty-threshold": 12.0,
|
||||
"effort-threshold": 5000.0,
|
||||
"difficulty-threshold": 12,
|
||||
"effort-threshold": 5000,
|
||||
"enabled": true,
|
||||
"level": "Warning",
|
||||
"volume-threshold": 1000.0
|
||||
"volume-threshold": 1000
|
||||
},
|
||||
"identity-comparison": {
|
||||
"enabled": true,
|
||||
|
|
@ -7350,7 +7455,9 @@
|
|||
},
|
||||
"tainted-data-to-sink": {
|
||||
"enabled": true,
|
||||
"known-sink-functions": ["printf"],
|
||||
"known-sink-functions": [
|
||||
"printf"
|
||||
],
|
||||
"level": "Error"
|
||||
},
|
||||
"too-many-enum-cases": {
|
||||
|
|
@ -7434,7 +7541,9 @@
|
|||
"$ref": "#/$defs/SourceConfiguration",
|
||||
"default": {
|
||||
"excludes": [],
|
||||
"extensions": ["php"],
|
||||
"extensions": [
|
||||
"php"
|
||||
],
|
||||
"glob": {
|
||||
"backslash-escape": true,
|
||||
"case-insensitive": false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue