Skip to content

Commit

Permalink
Enable 7 Main code rules on Test code (#4819)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaufco authored Jun 19, 2024
1 parent c4e02a8 commit 28c3799
Show file tree
Hide file tree
Showing 17 changed files with 733 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"commons-beanutils:commons-beanutils:src/test/java/org/apache/commons/beanutils2/MappedPropertyTestCase.java": [
290,
320
],
"commons-beanutils:commons-beanutils:src/test/java/org/apache/commons/beanutils2/bugs/Jira347TestCase.java": [
114
]
}
22 changes: 22 additions & 0 deletions its/ruling/src/test/resources/commons-beanutils/java-S115.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,26 @@
147,
149
],
"commons-beanutils:commons-beanutils:src/test/java/org/apache/commons/beanutils2/BeanPropertyValueChangeClosureTestCase.java": [
29,
30,
31,
32,
33
],
"commons-beanutils:commons-beanutils:src/test/java/org/apache/commons/beanutils2/BeanPropertyValueEqualsPredicateTestCase.java": [
29,
30,
31,
32,
33
],
"commons-beanutils:commons-beanutils:src/test/java/org/apache/commons/beanutils2/BeanToPropertyValueTransformerTestCase.java": [
29,
30,
31,
32,
33,
34
]
}
12 changes: 12 additions & 0 deletions its/ruling/src/test/resources/commons-beanutils/java-S116.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"commons-beanutils:commons-beanutils:src/test/java/org/apache/commons/beanutils2/PrimitiveBean.java": [
26,
27,
28,
29,
30
],
"commons-beanutils:commons-beanutils:src/test/java/org/apache/commons/beanutils2/locale/LocaleConvertUtilsTestCase.java": [
46
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"commons-beanutils:commons-beanutils:src/test/java/org/apache/commons/beanutils2/converters/ArrayConverterTestCase.java": [
81,
82
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@
85,
101
],
"org.eclipse.jetty:jetty-project:jetty-io/src/test/java/org/eclipse/jetty/io/IOTest.java": [
311
],
"org.eclipse.jetty:jetty-project:jetty-jmx/src/test/java/org/eclipse/jetty/jmx/MBeanContainerLifeCycleTest.java": [
95
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@
107,
115,
123
],
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,38 @@
70,
74
],
"org.eclipse.jetty:jetty-project:jetty-http/src/test/java/org/eclipse/jetty/http/HttpGeneratorServerHTTPTest.java": [
40,
41,
81,
82,
83,
84,
85,
86,
87,
88,
89
],
"org.eclipse.jetty:jetty-project:jetty-http/src/test/java/org/eclipse/jetty/http/HttpParserTest.java": [
2835,
2836,
2837,
2838,
2839,
2840,
2841,
2842,
2843,
2844,
2845,
2846,
2847,
2848,
2849,
2850,
2851
],
"org.eclipse.jetty:jetty-project:jetty-io/src/main/java/org/eclipse/jetty/io/AbstractByteBufferPool.java": [
32,
33,
Expand Down Expand Up @@ -423,6 +455,54 @@
461,
462
],
"org.eclipse.jetty:jetty-project:jetty-io/src/test/java/org/eclipse/jetty/io/ByteArrayEndPointTest.java": [
47
],
"org.eclipse.jetty:jetty-project:jetty-io/src/test/java/org/eclipse/jetty/io/CyclicTimeoutTest.java": [
36,
37,
38
],
"org.eclipse.jetty:jetty-project:jetty-io/src/test/java/org/eclipse/jetty/io/IdleTimeoutTest.java": [
34,
35,
37,
38
],
"org.eclipse.jetty:jetty-project:jetty-io/src/test/java/org/eclipse/jetty/io/SocketChannelEndPointTest.java": [
97,
99,
100,
101,
102,
103,
104,
107,
108,
626,
627,
628,
678,
679,
680,
682,
683,
684,
685
],
"org.eclipse.jetty:jetty-project:jetty-io/src/test/java/org/eclipse/jetty/io/SslConnectionTest.java": [
69,
70,
71,
72,
74,
75,
76,
77,
86,
87,
191
],
"org.eclipse.jetty:jetty-project:jetty-jmx/src/main/java/org/eclipse/jetty/jmx/ConnectorServer.java": [
66,
67,
Expand Down Expand Up @@ -1478,4 +1558,134 @@
26,
27
],
"org.eclipse.jetty:jetty-project:jetty-server/src/test/java/org/eclipse/jetty/server/AsyncCompletionTest.java": [
83,
284,
285,
286,
287,
288,
289,
290,
291,
292,
293,
532,
533,
534,
535,
536,
537,
708,
709,
710
],
"org.eclipse.jetty:jetty-project:jetty-server/src/test/java/org/eclipse/jetty/server/AsyncStressTest.java": [
58,
59,
60,
61,
62,
63,
64,
181
],
"org.eclipse.jetty:jetty-project:jetty-server/src/test/java/org/eclipse/jetty/server/CheckReverseProxyHeadersTest.java": [
165,
166
],
"org.eclipse.jetty:jetty-project:jetty-server/src/test/java/org/eclipse/jetty/server/ConnectorCloseTestBase.java": [
70,
183,
185,
186,
187
],
"org.eclipse.jetty:jetty-project:jetty-server/src/test/java/org/eclipse/jetty/server/CustomResourcesMonitorTest.java": [
47,
48,
49,
50,
51,
137
],
"org.eclipse.jetty:jetty-project:jetty-server/src/test/java/org/eclipse/jetty/server/DetectorConnectionTest.java": [
53
],
"org.eclipse.jetty:jetty-project:jetty-server/src/test/java/org/eclipse/jetty/server/ExtendedServerTest.java": [
72
],
"org.eclipse.jetty:jetty-project:jetty-server/src/test/java/org/eclipse/jetty/server/HttpInputAsyncStateTest.java": [
53,
54,
55,
56,
58,
83,
84
],
"org.eclipse.jetty:jetty-project:jetty-server/src/test/java/org/eclipse/jetty/server/HttpInputTest.java": [
43,
44,
45,
65,
69,
123
],
"org.eclipse.jetty:jetty-project:jetty-server/src/test/java/org/eclipse/jetty/server/HttpOutputTest.java": [
63,
64,
65,
66,
666,
1024,
1025,
1026,
1027,
1028,
1029,
1030,
1031,
1032
],
"org.eclipse.jetty:jetty-project:jetty-server/src/test/java/org/eclipse/jetty/server/HttpServerTestBase.java": [
1343,
1362
],
"org.eclipse.jetty:jetty-project:jetty-server/src/test/java/org/eclipse/jetty/server/HttpWriterTest.java": [
39,
40
],
"org.eclipse.jetty:jetty-project:jetty-server/src/test/java/org/eclipse/jetty/server/InsufficientThreadsDetectionTest.java": [
31
],
"org.eclipse.jetty:jetty-project:jetty-server/src/test/java/org/eclipse/jetty/server/LocalAsyncContextTest.java": [
48,
49,
50,
262,
263,
264,
265,
266,
267,
268,
473
],
"org.eclipse.jetty:jetty-project:jetty-server/src/test/java/org/eclipse/jetty/server/LocalConnectorTest.java": [
40,
41
],
"org.eclipse.jetty:jetty-project:jetty-server/src/test/java/org/eclipse/jetty/server/LowResourcesMonitorTest.java": [
46,
47,
48,
49
],
"org.eclipse.jetty:jetty-project:jetty-server/src/test/java/org/eclipse/jetty/server/MultiPartFormInputStreamTest.java": [
64,
65,
66,
67
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
155,
171
],
"org.eclipse.jetty:jetty-project:jetty-http/src/test/java/org/eclipse/jetty/http/HttpFieldsTest.java": [
393,
404
],
"org.eclipse.jetty:jetty-project:jetty-io/src/test/java/org/eclipse/jetty/io/SslConnectionTest.java": [
533
],
"org.eclipse.jetty:jetty-project:jetty-server/src/main/java/org/eclipse/jetty/server/CustomRequestLog.java": [
472
],
Expand All @@ -23,5 +30,5 @@
],
"org.eclipse.jetty:jetty-project:jetty-server/src/main/java/org/eclipse/jetty/server/handler/DebugHandler.java": [
54
],
]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"org.eclipse.jetty:jetty-project:jetty-http/src/main/java/org/eclipse/jetty/http/HttpGenerator.java": [
201
],
]
}
22 changes: 22 additions & 0 deletions its/ruling/src/test/resources/eclipse-jetty/java-S108.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@
85,
101
],
"org.eclipse.jetty:jetty-project:jetty-io/src/test/java/org/eclipse/jetty/io/IOTest.java": [
311
],
"org.eclipse.jetty:jetty-project:jetty-jmx/src/test/java/org/eclipse/jetty/jmx/MBeanContainerLifeCycleTest.java": [
95
],
"org.eclipse.jetty:jetty-project:jetty-server/src/test/java/org/eclipse/jetty/server/handler/StatisticsHandlerTest.java": [
272,
332,
573,
622,
688,
742
],
"org.eclipse.jetty:jetty-project:jetty-util/src/main/java/org/eclipse/jetty/util/MemoryUtils.java": [
47
],
Expand All @@ -16,5 +30,13 @@
"org.eclipse.jetty:jetty-project:jetty-util/src/main/java/org/eclipse/jetty/util/resource/Resource.java": [
719,
745
],
"org.eclipse.jetty:jetty-project:jetty-util/src/test/java/org/eclipse/jetty/util/SharedBlockingCallbackTest.java": [
238
],
"org.eclipse.jetty:jetty-project:jetty-util/src/test/java/org/eclipse/jetty/util/thread/QueuedThreadPoolTest.java": [
662,
681,
699
]
}
4 changes: 4 additions & 0 deletions its/ruling/src/test/resources/eclipse-jetty/java-S115.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
115,
123
],
"org.eclipse.jetty:jetty-project:jetty-util-ajax/src/test/java/org/eclipse/jetty/util/ajax/Color.java": [
23,
23
],
"org.eclipse.jetty:jetty-project:jetty-util/src/main/java/org/eclipse/jetty/util/IO.java": [
56
],
Expand Down
Loading

0 comments on commit 28c3799

Please sign in to comment.