aws / aws-sdk-java-v2

The official AWS SDK for Java - Version 2
Apache License 2.0
2.17k stars 840 forks source link

Spotbugs rule for blocking calls #5494

Closed L-Applin closed 1 month ago

L-Applin commented 1 month ago

Implementation of a new spotbugs/findbugs rule to detect blocking calls:

Motivation and Context

As part of our effort to remove blocking call from the async code path, we need a way to detect existing blocking calls and prevent new blocking calls from making their way into the async code path.

Modifications

New spotbugs/findbugs rule and suppression for it.

Testing

Manually build the sdk with the new rule enabled, adding suppression for any the new rule findings

sonarcloud[bot] commented 1 month ago

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud