From 7d0fec632662cdc685c50d80a1833ff7c9af536e Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 13 Jan 2026 05:25:01 +0100 Subject: [PATCH] Mago config --- mago.toml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 mago.toml diff --git a/mago.toml b/mago.toml new file mode 100644 index 0000000000..95f78ada2f --- /dev/null +++ b/mago.toml @@ -0,0 +1,42 @@ +# Welcome to Mago! +# For full documentation, see https://mago.carthage.software/tools/overview +php-version = "8.4.0" + +[source] +workspace = "." +paths = ["app/", "database/factories/", "database/seeders/", "tests/"] +includes = ["vendor"] +excludes = [] + +[formatter] +print-width = 160 +tab-width = 4 +use-tabs = false +trailing-comma = false +method-chain-breaking-style = "same-line" +preserve-breaking-array-like = false +align-assignment-like = true +null-type-hint = "null_pipe" + +[linter] +integrations = ["symfony", "laravel", "phpunit"] + +[linter.rules] +ambiguous-function-call = { enabled = false } +literal-named-argument = { enabled = false } +halstead = { effort-threshold = 7000 } +prefer-early-continue = { enabled = false } + +[analyzer] +find-unused-definitions = true +find-unused-expressions = true +analyze-dead-code = false +memoize-properties = true +allow-possibly-undefined-array-keys = true +check-throws = true +check-missing-override = false +find-unused-parameters = false +strict-list-index-checks = false +no-boolean-literal-comparison = false +check-missing-type-hints = false +register-super-globals = true