-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinfection.json5
27 lines (27 loc) · 900 Bytes
/
infection.json5
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
{
"$schema": "vendor/infection/infection/resources/schema.json",
"source": {
"directories": [
"src"
]
},
"mutators": {
"@default": true,
"IncrementInteger": {
"ignoreSourceCodeByRegex": [
// The inner $scale only needs to be larger than the outer $scale. Doesn't matter if it's by 1 or more.
"return self\\:\\:round\\(bc[a-z]{3}\\(\\$leftOperand\\, \\$rightOperand\\, \\$scale ?\\+ ?1\\)\\, \\$scale\\)\\;"
]
},
"CastInt": {
"ignoreSourceCodeByRegex": [
// This is impossible to test, since php would cast to int during operation anyway.
"\\$exponent \\= \\(int\\) \\$parts\\[\\'exponent\\'\\]\\;"
]
},
},
"logs": {
"text": "php://stdout",
"json": "infection_report.json"
}
}