phpvms/mago.toml
2026-05-31 13:50:23 -05:00

91 lines
2.3 KiB
TOML

#:schema https://mago.carthage.software/1.29.0/schema.json
# Welcome to Mago!
# For full documentation, see https://mago.carthage.software/tools/overview
version = "1"
php-version = "8.3.0"
[source]
workspace = "."
paths = ["app/", "database/factories/", "database/seeders/", "modules/", "tests/"]
includes = ["vendor"]
excludes = [
"**/vendor/**",
"storage/**",
"bootstrap/cache/**",
"node_modules/**",
".git/**",
"tests/Fixtures/**",
"modules/**",
"tmp/**",
]
[source.glob]
literal-separator = true
[formatter]
preset = "laravel"
preserve-breaking-member-access-chain = true
preserve-breaking-member-access-chain-first-method-on-same-line = true
preserve-breaking-argument-list = true
preserve-breaking-attribute-list = true
preserve-breaking-conditional-expression = true
preserve-breaking-condition-expression = true
preserve-redundant-logical-binary-expression-parentheses = true
align-assignment-like = true
# Use table-style alignment for key-value pairs in associative arrays
array-table-style-alignment = true
# Line width configuration
print-width = 120
# Indentation - use 4 spaces (not tabs)
use-tabs = false
# Quote preferences
single-quote = true
# Trailing comma in multi-line structures
trailing-comma = true
# Line endings
end-of-line = "lf"
# Brace positioning - keep opening braces on same line
method-brace-style = "same_line"
function-brace-style = "same_line"
control-brace-style = "same_line"
# Parameter formatting - preserve existing multi-line formatting
preserve-breaking-parameter-list = true
# Array formatting - preserve existing multi-line formatting
preserve-breaking-array-like = true
[linter]
integrations = ["symfony", "laravel", "pest"]
[linter.rules]
ambiguous-function-call = { enabled = false }
literal-named-argument = { enabled = false }
halstead = { effort-threshold = 7000 }
[analyzer]
plugins = []
find-unused-definitions = true
find-unused-expressions = true
analyze-dead-code = true
memoize-properties = true
allow-possibly-undefined-array-keys = true
check-throws = false
unchecked-exceptions = ["Error", "LogicException"]
unchecked-exception-classes = []
check-missing-override = true
find-unused-parameters = true
strict-list-index-checks = true
strict-array-index-existence = false
allow-array-truthy-operand = false
no-boolean-literal-comparison = false
check-missing-type-hints = true
register-super-globals = true