-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmago.toml
More file actions
47 lines (42 loc) · 1.15 KB
/
mago.toml
File metadata and controls
47 lines (42 loc) · 1.15 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
36
37
38
39
40
41
42
43
44
45
46
47
# Welcome to Mago!
# For full documentation, see https://mago.carthage.software/tools/overview
php-version = "8.5.0"
[source]
workspace = "."
paths = ["src/", "tests/"]
includes = ["vendor"]
[formatter]
print-width = 120
tab-width = 4
use-tabs = false
excludes = ["vendor", "obsidian"]
[linter]
integrations = ["symfony", "phpunit"]
excludes = ["vendor", "obsidian"]
[linter.rules]
ambiguous-function-call = { enabled = false }
literal-named-argument = { enabled = false }
halstead = { effort-threshold = 7000 }
too-many-methods = {
exclude = ["/tests"]
}
[analyzer]
plugins = []
find-unused-definitions = true
find-unused-expressions = true
analyze-dead-code = true
memoize-properties = true
allow-possibly-undefined-array-keys = false
check-throws = true
check-missing-override = true
find-unused-parameters = true
strict-list-index-checks = true
no-boolean-literal-comparison = true
check-missing-type-hints = true
register-super-globals = true
excludes = ["obsidian"]
ignore = [
{ code = "missing-override-attribute" , in = "tests" },
{ code = "unhandled-thrown-type", in = "tests" },
{ code = "possibly-undefined-array-index", in = "tests" }
]