Skip to content

Commit

Permalink
One more attempt to ignore obsolete code
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwiseman committed Apr 12, 2021
1 parent 2f9ff32 commit 941573a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ignore:
- "**/extras/okhtp3/ObsoleteUrlFactory.*"
- "**ObsoleteUrlFactory**"

26 changes: 15 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,24 +103,27 @@
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.6</version>
<configuration>
<excludes>
<!-- Code implemented externally -->
<exclude>**/extras/okhtp3/ObsoleteUrlFactory.*</exclude>
<exclude>**/extras/okhtp3/ObsoleteUrlFactory*</exclude>
<!-- Sample only -->
<exclude>**/example/**</exclude>
<!-- Deprecated -->
<exclude>org/kohsuke/github/extras/OkHttpConnector.*</exclude>
<exclude>org/kohsuke/github/extras/OkHttp3Connector.*</exclude>
<exclude>org/kohsuke/github/EnforcementLevel.*</exclude>
<exclude>org/kohsuke/github/GHPerson$1.*</exclude>
</excludes>
</configuration>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<propertyName>jacoco.surefire.argLine</propertyName>
<excludes>
<!-- Code implemented externally -->
<exclude>org/kohsuke/github/extras/okhtp3/ObsoleteUrlFactory.*</exclude>
<exclude>org/kohsuke/github/extras/okhtp3/ObsoleteUrlFactory$*.*</exclude>
<!-- Sample only -->
<exclude>org/kohsuke/github/example/**</exclude>
<!-- Deprecated -->
<exclude>org/kohsuke/github/extras/OkHttp3Connector.*</exclude>
<exclude>org/kohsuke/github/EnforcementLevel.*</exclude>
<exclude>org/kohsuke/github/GHPerson$1.*</exclude>
</excludes>
</configuration>
</execution>
<!-- attached to Maven test phase -->
Expand Down Expand Up @@ -171,6 +174,7 @@


<!-- Deprecated -->
<exclude>org.kohsuke.github.extras.OkHttpConnector</exclude>
<exclude>org.kohsuke.github.extras.OkHttp3Connector</exclude>
<exclude>org.kohsuke.github.EnforcementLevel</exclude>
<exclude>org.kohsuke.github.GHPerson.1</exclude>
Expand Down

0 comments on commit 941573a

Please sign in to comment.