-
-
Notifications
You must be signed in to change notification settings - Fork 134
Expand file tree
/
Copy pathmago.toml
More file actions
37 lines (34 loc) · 1.12 KB
/
mago.toml
File metadata and controls
37 lines (34 loc) · 1.12 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
php-version = "8.1"
[source]
paths = ["composer", "scripts"]
includes = ["vendor"]
excludes = ["scripts/local"]
[linter.rules]
ambiguous-function-call = { enabled = true, level = "error" }
cyclomatic-complexity = { threshold = 6 }
kan-defect = { threshold = 1.9 }
halstead = { effort-threshold = 7000 }
literal-named-argument = { enabled = false }
too-many-enum-cases = { threshold = 30 }
# Enable disabled-by-default rules
no-redundant-use = { enabled = true }
no-variable-variable = { enabled = true }
no-redundant-readonly = { enabled = true }
sensitive-parameter = { enabled = true }
# Disable for scripts
single-class-per-file = { exclude = ["scripts"] }
file-name = { exclude = ["scripts"] }
[analyzer]
find-unused-expressions = true
find-unused-definitions = true
analyze-dead-code = true
check-missing-override = true
find-unused-parameters = true
check-missing-type-hints = true
check-closure-missing-type-hints = true
check-arrow-function-missing-type-hints = true
strict-list-index-checks = true
no-boolean-literal-comparison = true
allow-possibly-undefined-array-keys = false
trust-existence-checks = false
check-use-statements = true