-
-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathmago.toml
84 lines (65 loc) · 1.57 KB
/
mago.toml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
[source]
paths = ["src", "tests", "examples"]
includes = ["vendor"]
excludes = [
"src/bootstrap.php",
"src/preload.php",
"src/Psl/Internal/Loader.php",
]
[format]
null_type_hint = "pipe"
[linter]
plugins = ["php-unit"]
[[linter.rules]]
name = "maintainability/cyclomatic-complexity"
threshold = 43
[[linter.rules]]
name = "maintainability/kan-defect"
threshold = 3.5
[[linter.rules]]
name = "maintainability/halstead"
effort_threshold = 16_000.0
volume_threshold = 1_400.0
difficulty_threshold = 18.5
[[linter.rules]]
name = "maintainability/excessive-parameter-list"
threshold = 9
[[linter.rules]]
name = "maintainability/too-many-enum-cases"
threshold = 800
[[linter.rules]]
name = "maintainability/too-many-methods"
threshold = 43
[[linter.rules]]
name = "best-practices/disallowed-functions"
functions = ["is_null", "assert"]
[[linter.rules]]
name = "best-practices/excessive-nesting"
threshold = 5
[[linter.rules]]
name = "best-practices/no-debug-symbols"
level = "Error"
[[linter.rules]]
name = "strictness/no-assignment-in-condition"
level = "Warning"
[[linter.rules]]
name = "strictness/require-constant-type"
level = "Warning"
[[linter.rules]]
name = "strictness/require-parameter-type"
level = "Warning"
[[linter.rules]]
name = "strictness/require-property-type"
level = "Error"
[[linter.rules]]
name = "strictness/require-return-type"
level = "Warning"
[[linter.rules]]
name = "strictness/require-strict-types"
level = "Error"
[[linter.rules]]
name = "safety/no-error-control-operator"
level = "Off"
[[linter.rules]]
name = "safety/no-global"
level = "Warning"