forked from phpmetrics/PhpMetrics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-example.json
42 lines (42 loc) · 931 Bytes
/
config-example.json
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
{
"includes": [
"Controller"
],
"excludes": [
"tests"
],
"report": {
"html": "/tmp/report/",
"csv": "/tmp/report.csv",
"json": "/tmp/report.json",
"violations": "/tmp/violations.xml"
},
"groups": [
{
"name": "Component",
"match": "!component!i"
},
{
"name": "Reporters",
"match": "!Report!"
}
],
"searches": {
"Repository which uses Service": {
"type": "class",
"instanceOf": [
"App\\MyRepository"
],
"nameMatches": ".*Repository.*",
"usesClasses": [
".*Service"
],
"failIfFound": true
},
"Class with too complex code": {
"type": "class",
"ccn": ">=3",
"failIfFound": true
}
}
}