forked from checkstyle/checkstyle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pitest-metrics-suppressions.xml
173 lines (155 loc) · 9.83 KB
/
pitest-metrics-suppressions.xml
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<?xml version="1.0" encoding="UTF-8"?>
<suppressedMutations>
<mutation unstable="false">
<sourceFile>AbstractClassCouplingCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.metrics.AbstractClassCouplingCheck</mutatedClass>
<mutatedMethod><init></mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator</mutator>
<description>removed call to java/util/List::add</description>
<lineContent>excludeClassesRegexps.add(CommonUtil.createPattern("^$"));</lineContent>
</mutation>
<mutation unstable="false">
<sourceFile>AbstractClassCouplingCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.metrics.AbstractClassCouplingCheck</mutatedClass>
<mutatedMethod>beginTree</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator</mutator>
<description>Removed assignment to member variable packageName</description>
<lineContent>packageName = "";</lineContent>
</mutation>
<mutation unstable="false">
<sourceFile>AbstractClassCouplingCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.metrics.AbstractClassCouplingCheck</mutatedClass>
<mutatedMethod>setExcludeClassesRegexps</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator</mutator>
<description>replaced call to java/util/stream/Stream::distinct with receiver</description>
<lineContent>.distinct()</lineContent>
</mutation>
<mutation unstable="false">
<sourceFile>AbstractClassCouplingCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.metrics.AbstractClassCouplingCheck$ClassContext</mutatedClass>
<mutatedMethod>visitLiteralNew</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator</mutator>
<description>replaced call to com/puppycrawl/tools/checkstyle/api/DetailAST::getFirstChild with receiver</description>
<lineContent>addReferencedClassName(ast.getFirstChild());</lineContent>
</mutation>
<mutation unstable="false">
<sourceFile>AbstractClassCouplingCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.metrics.AbstractClassCouplingCheck$ClassContext</mutatedClass>
<mutatedMethod>visitLiteralThrows</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator</mutator>
<description>removed call to com/puppycrawl/tools/checkstyle/api/DetailAST::getNextSibling</description>
<lineContent>childAST = childAST.getNextSibling()) {</lineContent>
</mutation>
<mutation unstable="false">
<sourceFile>BooleanExpressionComplexityCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.metrics.BooleanExpressionComplexityCheck</mutatedClass>
<mutatedMethod>leaveMethodDef</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator</mutator>
<description>Removed assignment to member variable context</description>
<lineContent>context = contextStack.pop();</lineContent>
</mutation>
<mutation unstable="false">
<sourceFile>BooleanExpressionComplexityCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.metrics.BooleanExpressionComplexityCheck</mutatedClass>
<mutatedMethod>leaveToken</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.RemoveSwitchMutator_0</mutator>
<description>RemoveSwitch 0 (case value 8)</description>
<lineContent>switch (ast.getType()) {</lineContent>
</mutation>
<mutation unstable="false">
<sourceFile>BooleanExpressionComplexityCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.metrics.BooleanExpressionComplexityCheck</mutatedClass>
<mutatedMethod>leaveToken</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.RemoveSwitchMutator_3</mutator>
<description>RemoveSwitch 3 (case value 203)</description>
<lineContent>switch (ast.getType()) {</lineContent>
</mutation>
<mutation unstable="false">
<sourceFile>BooleanExpressionComplexityCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.metrics.BooleanExpressionComplexityCheck$Context</mutatedClass>
<mutatedMethod><init></mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator</mutator>
<description>Removed assignment to member variable count</description>
<lineContent>count = 0;</lineContent>
</mutation>
<mutation unstable="false">
<sourceFile>CyclomaticComplexityCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.metrics.CyclomaticComplexityCheck</mutatedClass>
<mutatedMethod><init></mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator</mutator>
<description>Removed assignment to member variable max</description>
<lineContent>private int max = DEFAULT_COMPLEXITY_VALUE;</lineContent>
</mutation>
<mutation unstable="false">
<sourceFile>JavaNCSSCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.metrics.JavaNCSSCheck</mutatedClass>
<mutatedMethod><init></mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator</mutator>
<description>Removed assignment to member variable recordMaximum</description>
<lineContent>private int recordMaximum = RECORD_MAX_NCSS;</lineContent>
</mutation>
<mutation unstable="false">
<sourceFile>NPathComplexityCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.metrics.NPathComplexityCheck</mutatedClass>
<mutatedMethod>beginTree</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator</mutator>
<description>Removed assignment to member variable branchVisited</description>
<lineContent>branchVisited = false;</lineContent>
</mutation>
<mutation unstable="false">
<sourceFile>NPathComplexityCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.metrics.NPathComplexityCheck</mutatedClass>
<mutatedMethod>beginTree</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator</mutator>
<description>Removed assignment to member variable currentRangeValue</description>
<lineContent>currentRangeValue = INITIAL_VALUE;</lineContent>
</mutation>
<mutation unstable="false">
<sourceFile>NPathComplexityCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.metrics.NPathComplexityCheck</mutatedClass>
<mutatedMethod>leaveAddingConditional</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator</mutator>
<description>replaced call to java/math/BigInteger::add with argument</description>
<lineContent>currentRangeValue = currentRangeValue.add(popValue().getRangeValue().add(BigInteger.ONE));</lineContent>
</mutation>
<mutation unstable="false">
<sourceFile>NPathComplexityCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.metrics.NPathComplexityCheck</mutatedClass>
<mutatedMethod>leaveMultiplyingConditional</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator</mutator>
<description>replaced call to java/math/BigInteger::add with argument</description>
<lineContent>.multiply(popValue().getRangeValue().add(BigInteger.ONE));</lineContent>
</mutation>
<mutation unstable="false">
<sourceFile>NPathComplexityCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.metrics.NPathComplexityCheck</mutatedClass>
<mutatedMethod>leaveMultiplyingConditional</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.BigIntegerMutator</mutator>
<description>Replaced BigInteger#multiply with BigInteger#divide.</description>
<lineContent>.multiply(popValue().getRangeValue().add(BigInteger.ONE));</lineContent>
</mutation>
<mutation unstable="false">
<sourceFile>NPathComplexityCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.metrics.NPathComplexityCheck</mutatedClass>
<mutatedMethod>leaveMultiplyingConditional</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator</mutator>
<description>replaced call to java/math/BigInteger::multiply with receiver</description>
<lineContent>.multiply(popValue().getRangeValue().add(BigInteger.ONE));</lineContent>
</mutation>
<mutation unstable="false">
<sourceFile>NPathComplexityCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.metrics.NPathComplexityCheck</mutatedClass>
<mutatedMethod>visitConditional</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator</mutator>
<description>replaced call to com/puppycrawl/tools/checkstyle/api/DetailAST::getNextSibling with receiver</description>
<lineContent>for (bracketed = ast.findFirstToken(TokenTypes.LPAREN).getNextSibling();</lineContent>
</mutation>
<mutation unstable="false">
<sourceFile>NPathComplexityCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.metrics.NPathComplexityCheck</mutatedClass>
<mutatedMethod>visitToken</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator</mutator>
<description>Removed assignment to member variable branchVisited</description>
<lineContent>branchVisited = true;</lineContent>
</mutation>
</suppressedMutations>