#:schema mago-schema.json php-version = "8.5" 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 } 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 analyze-dead-code = true check-arrow-function-missing-type-hints = true check-closure-missing-type-hints = true check-missing-override = true check-missing-type-hints = true check-property-initialization = true check-throws = true check-use-statements = true enforce-class-finality = true find-unused-definitions = true find-unused-expressions = true find-unused-parameters = true no-boolean-literal-comparison = false perform-heuristic-checks = true plugins = ["psl"] 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] 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 [formatter] excludes = [ "web/app/mu-plugins", "web/app/plugins", ]