53 lines
2 KiB
TOML
53 lines
2 KiB
TOML
php-version = "8.5"
|
|
stack-size = 8388608
|
|
threads = 8
|
|
|
|
[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"]
|
|
|
|
[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 }
|
|
|
|
[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
|
|
|
|
[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
|