2026-04-08

This commit is contained in:
gcch 2026-04-08 10:46:43 +02:00
commit 00f87fedcd
52 changed files with 8262 additions and 1491 deletions

View file

@ -1,25 +1,37 @@
#:schema mago-schema.json
php-version = "8.5"
stack-size = 8388608
threads = 8
stack-size = 0
threads = 0
[source]
excludes = ["web/wp/wp-admin/includes/noop.php"]
extensions = ["php"]
includes = ["config", "vendor", "web/app/plugins", "web/vendor", "web/wp"]
paths = ["web/app/themes/haiku-atelier-2024"]
workspace = "."
[linter]
integrations = ["wordpress"]
[linter.rules]
ambiguous-function-call = { enabled = true }
halstead = { effort-threshold = 7000 }
literal-named-argument = { enabled = false }
no-inline = { enabled = true }
no-redundant-readonly = { enabled = true }
no-redundant-use = { enabled = true }
no-variable-variable = { enabled = true }
require-namespace = { enabled = true }
ambiguous-function-call = { enabled = true }
array-style = { enabled = true, style = "short" }
halstead = { effort-threshold = 7000 }
literal-named-argument = { enabled = false }
missing-docs = { enabled = true }
no-array-accumulation-in-loop = { enabled = true }
no-inline = { enabled = true }
no-is-null = { enabled = true }
no-iterator-to-array-in-foreach = { enabled = true }
no-parameter-shadowing = { enabled = true }
no-redundant-readonly = { enabled = true }
no-redundant-use = { enabled = true }
no-variable-variable = { enabled = true }
require-namespace = { enabled = true }
sorted-integer-keys = { enabled = true }
# Les else permettent de conserver les branches d'une condition à la même indentation.
no-else-clause = { enabled = false }
[analyzer]
allow-possibly-undefined-array-keys = false
@ -41,13 +53,16 @@ threads = 8
require-api-or-internal = true
strict-list-index-checks = true
trust-existence-checks = false
check-experimental = true
check-name-casing = true
memoize-properties = true
[analyzer.performance]
saturation-complexity-threshold = 16384
disjunction-complexity-threshold = 8192
negation-complexity-threshold = 8192
consensus-limit-threshold = 512
formula-size-threshold = 1024
string-combination-threshold = 256
integer-combination-threshold = 256
array-combination-threshold = 256
consensus-limit-threshold = 512
disjunction-complexity-threshold = 8192
formula-size-threshold = 1024
integer-combination-threshold = 256
negation-complexity-threshold = 8192
saturation-complexity-threshold = 16384
string-combination-threshold = 256