Skip to content

Commit

Permalink
[Backport 2.x] Add code coverage exclusions on false positives (#3229)
Browse files Browse the repository at this point in the history
Backport 07406d6 from #3196.

Signed-off-by: Peter Nied <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 709fef0 commit 3d219cd
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
coverage:
status:
project:
# Exclusions to prevent false positives triggered
# Tracking with https://github.com/opensearch-project/security/issues/3137
default: false
plugin:
paths:
- "!src/main/java/com/amazon/dlic/auth/http/jwt/keybyoidc/SelfRefreshingKeySet.java"
- "!src/main/java/com/amazon/dlic/auth/ldap2/LDAPConnectionFactoryFactory.java"
- "!src/main/java/org/opensearch/security/transport/SecurityInterceptor.java"
- "!src/main/java/org/opensearch/security/auditlog/AuditLogSslExceptionHandler.java"
- "!src/main/java/org/opensearch/security/configuration/StaticResourceException.java"
- "!src/main/java/org/opensearch/security/dlic/rest/api/AuditApiAction.java"
- "!src/main/java/org/opensearch/security/ssl/transport/SecuritySSLNettyTransport.java"
- "!src/main/java/org/opensearch/security/ssl/util/SSLConnectionTestUtil.java"
- "src/main"
target: auto
threshold: 0%
inconsistent-coverage-files:
paths:
- "src/main/java/com/amazon/dlic/auth/http/jwt/keybyoidc/SelfRefreshingKeySet.java"
- "src/main/java/com/amazon/dlic/auth/ldap2/LDAPConnectionFactoryFactory.java"
- "src/main/java/org/opensearch/security/transport/SecurityInterceptor.java"
- "src/main/java/org/opensearch/security/auditlog/AuditLogSslExceptionHandler.java"
- "src/main/java/org/opensearch/security/configuration/StaticResourceException.java"
- "src/main/java/org/opensearch/security/dlic/rest/api/AuditApiAction.java"
- "src/main/java/org/opensearch/security/ssl/transport/SecuritySSLNettyTransport.java"
- "src/main/java/org/opensearch/security/ssl/util/SSLConnectionTestUtil.java"
target: auto
threshold: 50%
tests:
paths:
- "src/integrationTest"
- "src/test"
target: 100%

comment:
layout: "reach, diff, flags, files"
behavior: default
require_changes: true

0 comments on commit 3d219cd

Please sign in to comment.