-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmago.toml
More file actions
35 lines (30 loc) · 1.49 KB
/
mago.toml
File metadata and controls
35 lines (30 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Welcome to Mago!
# For full documentation, see https://mago.carthage.software/tools/overview
php-version = "8.4.0"
[source]
paths = ["src/", "tests/"]
excludes = ["vendor/"]
[formatter]
print-width = 120
tab-width = 4
use-tabs = false
[linter]
integrations = ["symfony", "phpunit"]
[linter.rules]
ambiguous-function-call = { enabled = false }
halstead = { effort-threshold = 8000 } # Allow slightly higher effort for complex methods
literal-named-argument = { enabled = false } # Too noisy for test files
no-literal-password = { enabled = false } # Test environment allows test secrets
class-name = { enabled = false } # Allow flexible naming in tests
cyclomatic-complexity = { threshold = 20 } # Allow higher complexity for main classes
kan-defect = { threshold = 2.0 } # Allow higher kan defect for main classes
excessive-parameter-list = { threshold = 7 } # Allow more parameters for validation methods
no-else-clause = { enabled = false } # Allow elseif for parameter parsing logic
property-type = { enabled = false } # Allow properties without type hints for callable compatibility
[analyzer]
find-unused-definitions = false # Disabled for test environment
find-unused-expressions = false # Disabled for test environment
analyze-dead-code = false
check-throws = false # Too strict for test files
allow-possibly-undefined-array-keys = true
perform-heuristic-checks = false # Too strict for test environment