mago 1.2.2

A comprehensive suite of PHP tooling inspired by Rust’s approach, providing parsing, linting, formatting, and more through a unified CLI and library interface.
php-version = "8.1"

[source]
paths = ["composer", "scripts"]
includes = ["vendor"]
excludes = ["scripts/local"]

[linter.rules]
ambiguous-function-call = { enabled = true, level = "error" }
cyclomatic-complexity = { threshold = 6 }
kan-defect = { threshold = 1.9 }
halstead = { effort-threshold = 7000 }
literal-named-argument = { enabled = false }
too-many-enum-cases = { threshold = 30 }
# Enable disabled-by-default rules
no-redundant-use = { enabled = true }
no-variable-variable = { enabled = true }
no-redundant-readonly = { enabled = true }
sensitive-parameter = { enabled = true }

[analyzer]
find-unused-expressions = true
find-unused-definitions = true
analyze-dead-code = true
check-missing-override = true
find-unused-parameters = true
check-missing-type-hints = true
check-closure-missing-type-hints = true
check-arrow-function-missing-type-hints = true
strict-list-index-checks = true
no-boolean-literal-comparison = true
allow-possibly-undefined-array-keys = false
trust-existence-checks = false
check-use-statements = true