Skip to content

Commit

Permalink
Fix Sonar coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez committed Jul 4, 2024
1 parent 60d60ab commit 2ca7837
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,5 @@ jobs:
java-version: 17

- name: sonar
run: mvn sonar:sonar -Psonar -Dsonar.token=${{secrets.SONAR_TOKEN}}
# tried to use sonar.coverage.exclusions in pom.xml and even in the admin of Sonar, but it seems the only way to make it work its here
run: mvn sonar:sonar -Psonar -Dsonar.token=${{secrets.SONAR_TOKEN}} -Dsonar.coverage.exclusions=**/*/ConfigValueConfigSource$ConfigValueProperties*
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ private ConfigValue toConfigValue(final String name, final String value) {
* This class is mostly a subset copy of {@link java.util.Properties}. This was required to be able to keep track of
* the line number from which the configuration was loaded.
*/
@SuppressWarnings("all")
final class ConfigValueProperties extends HashMap<String, ConfigValue> {
private static final long serialVersionUID = 613423366086278005L;
private final String configSourceName;
Expand Down

0 comments on commit 2ca7837

Please sign in to comment.