-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathinfection.json5
More file actions
92 lines (92 loc) · 3.03 KB
/
infection.json5
File metadata and controls
92 lines (92 loc) · 3.03 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
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
{
"$schema": "vendor/infection/infection/resources/schema.json",
"timeout": 5,
"source": {
"directories": [
"src"
]
},
"testFrameworkOptions": "--testsuite=Tests",
"logs": {
"text": "dist/infection.log"
},
"mutators": {
"global-ignoreSourceCodeByRegex": [
"Assert::.*"
],
"@default": true,
"Assignment": {
"ignore": [
// This is a perfectly valid case but too hard to test.
"Webmozarts\\Console\\Parallelization\\Process\\SymfonyProcessLauncher::freeTerminatedProcesses"
]
},
"Break_": {
"ignore": [
"Webmozarts\\Console\\Parallelization\\Process\\SymfonyProcessLauncher::run"
]
},
"CastString": {
"ignore": [
"Webmozarts\\Console\\Parallelization\\Input\\InputOptionsSerializer::quoteOptionValue"
],
"ignoreSourceCodeByRegex": [
"\\(string\\) \\$numberOfProcesses.*"
]
},
"CloneRemoval": false,
"DecrementInteger": {
ignore: [
// The segment size or batch size are not critical
"Webmozarts\\Console\\Parallelization\\ParallelExecutorFactory::create"
],
"ignoreSourceCodeByRegex": [
".*\\$numberOfStreamedItems = .*",
".*\\$numberOfItems \\?\\? 0.*",
".*return min\\(\\$exitCode, 255\\);.*"
]
},
"FalseValue": {
"ignore": [
// The input value cannot be null hence the boolean changed has no influence.
"Webmozarts\\Console\\Parallelization\\Input\\ParallelizationInput::coerceNumberOfProcesses"
]
},
"IncrementInteger": {
ignore: [
// The segment size or batch size are not critical
"Webmozarts\\Console\\Parallelization\\ParallelExecutorFactory::create"
],
"ignoreSourceCodeByRegex": [
".*\\$numberOfItems \\?\\? 0.*",
".*return min\\(\\$exitCode, 255\\);.*"
]
},
"MBString": false,
"MethodCallRemoval": {
"ignore": [
"Webmozarts\\Console\\Parallelization\\Process\\StandardSymfonyProcessFactory::startProcess"
],
"ignoreSourceCodeByRegex": [
"\\$currentInputStream->close\\(\\);",
]
},
"LogicalAnd": {
"ignoreSourceCodeByRegex": [
".*ResettableContainerInterface.*"
]
},
"ReturnRemoval": {
"ignoreSourceCodeByRegex": [
// This flag is for performance optimisation.
".*return;.*",
]
},
"TrueValue": {
"ignoreSourceCodeByRegex": [
// This flag is for performance optimisation.
".*sourceExhausted = true.*"
]
}
}
}