phpvms/mago.toml
Nabeel Shahzad 822524626f
refactor(addons): remove deprecated tests, update service bindings, and improve addon handling
- Removed outdated AddonsTableTest and related assertions.
- Unified service namespaces: migrated support classes to `Support` and service classes to `Services`.
- Added `name` column to the `addons` table and updated related models, migrations, and seeders.
- Replaced `AddonBootService` references with `AddonRuntimeService` throughout tests and codebase.
- Updated Rector configuration and Mago schema, improving import handling and schema validation.
- Simplified addon discovery logic, enhancing boot cache performance.
- Removed unused methods and adjusted runtime behavior for stricter validation and consistency.
2026-06-12 14:58:44 -05:00

69 lines
2.0 KiB
TOML

#:schema https://mago.carthage.software/1.30.0/schema.json
# Welcome to Mago!
# For full documentation, see https://mago.carthage.software/1.30.0/en/tools/overview/
version = "1"
php-version = "8.3.0"
[source]
workspace = "."
paths = ["app/", "database/factories/", "database/seeders/", "modules/", "tests/"]
includes = ["vendor"]
excludes = []
[source.glob]
literal-separator = true
[formatter]
preset = "pint"
preserve-breaking-member-access-chain = true
preserve-breaking-member-access-chain-first-method-on-same-line = true
preserve-breaking-argument-list = true
preserve-breaking-array-like = true
preserve-breaking-parameter-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
array-table-style-alignment = true
print-width = 120
use-tabs = false
single-quote = true
trailing-comma = true
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"
[linter]
integrations = ["symfony", "laravel", "pest"]
[linter.rules]
ambiguous-function-call = { enabled = false }
literal-named-argument = { enabled = false }
halstead = { effort-threshold = 7000 }
excessive-parameter-list = { enabled = false }
cyclomatic-complexity = { enabled = false }
kan-defect = { enabled = false }
[analyzer]
plugins = []
find-unused-definitions = false
find-unused-expressions = false
analyze-dead-code = true
memoize-properties = true
allow-possibly-undefined-array-keys = true
check-throws = true
unchecked-exceptions = ["Error", "LogicException"]
unchecked-exception-classes = []
check-missing-override = true
find-unused-parameters = false
strict-list-index-checks = false
strict-array-index-existence = false
allow-array-truthy-operand = false
no-boolean-literal-comparison = true
check-missing-type-hints = true
register-super-globals = true