-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
mago-full.toml
143 lines (115 loc) · 2.68 KB
/
mago-full.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# The number of threads to use for parallel processing
threads = 10
# Source code directories configuration
[source]
# Source code directories
paths = ["src"]
# External dependencies
includes = ["vendor"]
# Files to exclude from processing
excludes = [
# The following files contain invalid UTF-8 characters, so we exclude them
# to avoid warning messages
"**/vendor/composer/*",
]
# Formatter configuration
[format]
# The maximum line length
print_width = 120
# Linter configuration
[linter]
# The highest level of issues to report: "Error", "Warning", "Info", "Help", or "Off"
level = "Note"
# Whether to enable the default set of plugins
default_plugins = false
# List of plugins to enable
plugins = [
"best-practices",
"comment",
"consistency",
"naming",
"redundancy",
"safety",
"strictness",
# "symfony",
# "phpunit",
# "laravel"
]
# Configuration for individual rules
[[linter.rules]]
# Rule name
name = "best-practices/no-unused-parameter"
# The highest level of issues to report: "Error", "Warning", "Info", "Help", or "Off" to disable the rule.
level = "Off"
[[linter.rules]]
name = "best-practices/no-goto"
level = "Off"
[[linter.rules]]
name = "best-practices/no-debug-symbols"
level = "Off"
[[linter.rules]]
name = "best-practices/excessive-nesting"
threshold = 9
[[linter.rules]]
name = "comment/no-untagged-todo"
level = "Off"
[[linter.rules]]
name = "comment/no-untagged-fixme"
level = "Off"
[[linter.rules]]
name = "consistency/no-function-aliases"
level = "Off"
[[linter.rules]]
name = "naming/class"
psr = false
[[linter.rules]]
name = "naming/trait"
psr = false
[[linter.rules]]
name = "naming/interface"
psr = false
[[linter.rules]]
name = "naming/function"
either = true
[[linter.rules]]
name = "redundancy/redundant-parentheses"
level = "Off"
[[linter.rules]]
name = "safety/no-suppressed-expression"
level = "Off"
[[linter.rules]]
name = "safety/no-request-variable"
level = "Off"
[[linter.rules]]
name = "safety/no-global"
level = "Off"
[[linter.rules]]
name = "safety/no-eval"
level = "Off"
[[linter.rules]]
name = "safety/no-ffi"
level = "Off"
[[linter.rules]]
name = "safety/no-shell-execute-string"
level = "Off"
[[linter.rules]]
name = "strictness/require-strict-types"
level = "Off"
[[linter.rules]]
name = "strictness/require-constant-type"
level = "Off"
[[linter.rules]]
name = "strictness/require-parameter-type"
level = "Off"
[[linter.rules]]
name = "strictness/require-return-type"
level = "Off"
[[linter.rules]]
name = "strictness/require-property-type"
level = "Off"
[[linter.rules]]
name = "strictness/require-identity-comparison"
level = "Off"
[[linter.rules]]
name = "strictness/no-assignment-in-condition"
level = "Off"