Skip to content

Commit 941573a

Browse files
committed
One more attempt to ignore obsolete code
1 parent 2f9ff32 commit 941573a

2 files changed

Lines changed: 16 additions & 12 deletions

File tree

codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
ignore:
2-
- "**/extras/okhtp3/ObsoleteUrlFactory.*"
2+
- "**ObsoleteUrlFactory**"
33

pom.xml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -103,24 +103,27 @@
103103
<groupId>org.jacoco</groupId>
104104
<artifactId>jacoco-maven-plugin</artifactId>
105105
<version>0.8.6</version>
106+
<configuration>
107+
<excludes>
108+
<!-- Code implemented externally -->
109+
<exclude>**/extras/okhtp3/ObsoleteUrlFactory.*</exclude>
110+
<exclude>**/extras/okhtp3/ObsoleteUrlFactory*</exclude>
111+
<!-- Sample only -->
112+
<exclude>**/example/**</exclude>
113+
<!-- Deprecated -->
114+
<exclude>org/kohsuke/github/extras/OkHttpConnector.*</exclude>
115+
<exclude>org/kohsuke/github/extras/OkHttp3Connector.*</exclude>
116+
<exclude>org/kohsuke/github/EnforcementLevel.*</exclude>
117+
<exclude>org/kohsuke/github/GHPerson$1.*</exclude>
118+
</excludes>
119+
</configuration>
106120
<executions>
107121
<execution>
108122
<goals>
109123
<goal>prepare-agent</goal>
110124
</goals>
111125
<configuration>
112126
<propertyName>jacoco.surefire.argLine</propertyName>
113-
<excludes>
114-
<!-- Code implemented externally -->
115-
<exclude>org/kohsuke/github/extras/okhtp3/ObsoleteUrlFactory.*</exclude>
116-
<exclude>org/kohsuke/github/extras/okhtp3/ObsoleteUrlFactory$*.*</exclude>
117-
<!-- Sample only -->
118-
<exclude>org/kohsuke/github/example/**</exclude>
119-
<!-- Deprecated -->
120-
<exclude>org/kohsuke/github/extras/OkHttp3Connector.*</exclude>
121-
<exclude>org/kohsuke/github/EnforcementLevel.*</exclude>
122-
<exclude>org/kohsuke/github/GHPerson$1.*</exclude>
123-
</excludes>
124127
</configuration>
125128
</execution>
126129
<!-- attached to Maven test phase -->
@@ -171,6 +174,7 @@
171174

172175

173176
<!-- Deprecated -->
177+
<exclude>org.kohsuke.github.extras.OkHttpConnector</exclude>
174178
<exclude>org.kohsuke.github.extras.OkHttp3Connector</exclude>
175179
<exclude>org.kohsuke.github.EnforcementLevel</exclude>
176180
<exclude>org.kohsuke.github.GHPerson.1</exclude>

0 commit comments

Comments
 (0)