-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmago.toml
More file actions
45 lines (37 loc) · 1.05 KB
/
mago.toml
File metadata and controls
45 lines (37 loc) · 1.05 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
# Welcome to Mago!
# For full documentation, see https://mago.carthage.software/tools/overview
php-version = "8.4.0"
[source]
paths = ["source/php/"]
includes = ["vendor"]
excludes = []
[formatter]
print-width = 999
tab-width = 4
use-tabs = false
preserve-breaking-parameter-list = true
preserve-breaking-argument-list = true
preserve-breaking-array-like = true
preserve-breaking-attribute-list = true
[linter]
integrations = ["phpunit"]
[linter.rules]
ambiguous-function-call = { enabled = false }
literal-named-argument = { enabled = false }
halstead = { effort-threshold = 7000 }
# IMPORTANT!
# Temporarily lower severity error to warning.
# Remove when adressed
no-empty = { level = "warning" }
cyclomatic-complexity = { level = "warning" }
too-many-methods = { level = "warning" }
no-global = { level = "warning" }
kan-defect = { level = "warning" }
# End IMPORTANT!
[analyzer]
find-unused-definitions = true
find-unused-expressions = false
analyze-dead-code = false
check-throws = true
allow-possibly-undefined-array-keys = true
perform-heuristic-checks = true