-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinfection.json5
89 lines (88 loc) · 2.82 KB
/
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
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
{
"$schema": "./vendor/infection/infection/resources/schema.json",
"source": {
"directories": [
"src"
],
"excludes": [
"src/Input/Compatibility"
]
},
"tmpDir": "dist/infection",
"mutators": {
"@default": true,
"MBString": false,
"global-ignoreSourceCodeByRegex": [
"Assert::.*",
"ConsoleAssert::.*",
"break;"
],
"CastString": {
"ignore": [
"Fidry\\Console\\IO::getStringArgument"
]
},
"CastInt": {
"ignore": [
"Fidry\\Console\\InputAssert::castThrowException"
]
},
"Identical": {
"ignore": [
// This is purely for BC
"Fidry\\Console\\Bridge\\Application\\SymfonyApplication"
]
},
"IncrementInteger": {
"ignore": [
"Fidry\\Console\\Output\\DecoratesOutput::writeln",
"Fidry\\Console\\Input\\DecoratesInput::hasParameterOption",
]
},
"DecrementInteger": {
"ignore": [
"Fidry\\Console\\Output\\DecoratesOutput::writeln",
"Fidry\\Console\\Input\\DecoratesInput::hasParameterOption",
]
},
"FalseValue": {
"ignore": [
"Fidry\\Console\\Input\\DecoratesInput::hasParameterOption"
]
},
"LessThan": {
"ignoreSourceCodeByRegex": [
".*\\$min < \\$max.*"
]
},
"LogicalOr": {
"ignore": [
"Fidry\\Console\\Internal\\Generator\\GetterGenerator::isPsalmTypeRedundant"
]
},
"MethodCallRemoval": {
"ignore": [
"Fidry\\Console\\Command\\SymfonyCommand::setApplication",
"Fidry\\Console\\Input\\IO::__construct",
"Fidry\\Console\\Internal\\Type\\NaturalType::coerceValue",
"Fidry\\Console\\Internal\\Type\\PositiveIntegerType::coerceValue"
],
ignoreSourceCodeByRegex: [
".*InputAssert::assert.*", // This is likely caused by a bug in the coverage report; indeed the newly
// introduced test causing this does not test the IO object.
]
},
"PublicVisibility": false,
"UnwrapStrReplace": {
"ignore": [
"Fidry\\Console\\DisplayNormalizer::removeTrailingSpaces"
]
},
"UnwrapArrayValues": {
"ignore": [
// The following should be caught by Psalm not unit tests.
"Fidry\\Console\\Bridge\\Application\\SymfonyApplication::getSymfonyCommands"
]
}
}
}