Skip to content

Commit

Permalink
Merge pull request #11233 from murdos/suppress-warnings-approvals-config
Browse files Browse the repository at this point in the history
feat(approval-tests): suppress warnings on PackageSettings
  • Loading branch information
murdos authored Oct 27, 2024
2 parents 754cdbc + 1f2d633 commit b9d761a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ sonar.exclusions=\
target/classes/static/**/*.*,\
src/main/glyph/css/**
sonar.test.exclusions=\
src/test/resources/**,\
src/test/java/tech/jhipster/lite/PackageSettings.java
src/test/resources/**

sonar.typescript.tsconfigPath=tsconfig.json

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import org.approvaltests.reporters.FirstWorkingReporter;
/**
* ApprovalTests.Java configuration.
* */
@SuppressWarnings({ "unused", "java:S115" })
public class PackageSettings {
private static final String ApprovalBaseDirectory = "../resources";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ sonar.exclusions=\
{{projectBuildDirectory}}/classes/static/**/*.*,\
src/main/webapp/app/index.tsx,\
src/main/webapp/main.ts
sonar.test.exclusions=\
src/test/**/PackageSettings.java

sonar.issue.ignore.multicriteria=S117,S119,S125,S3437,S4502,S4684,S4032,S5778,S1133,S6206,S6437,S6564,UndocumentedApi,S2301,S7027

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ sonar.exclusions=\
{{projectBuildDirectory}}/classes/static/**/*.*,\
src/main/webapp/app/index.tsx,\
src/main/webapp/main.ts
sonar.test.exclusions=\
src/test/**/PackageSettings.java

sonar.issue.ignore.multicriteria=S117,S119,S125,S3437,S4502,S4684,S4032,S5778,S1133,S6206,S6548,S6437,S6471,UndocumentedApi,S2301,S7027

Expand Down
5 changes: 4 additions & 1 deletion src/test/java/tech/jhipster/lite/PackageSettings.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
package tech.jhipster.lite;

import org.approvaltests.core.ApprovalFailureReporter;
import org.approvaltests.reporters.*;
import org.approvaltests.reporters.AutoApproveWhenEmptyReporter;
import org.approvaltests.reporters.DiffReporter;
import org.approvaltests.reporters.FirstWorkingReporter;

/**
* ApprovalTests.Java configuration.
* */
@SuppressWarnings({ "unused", "java:S115" })
public class PackageSettings {

private static final String ApprovalBaseDirectory = "../resources";
Expand Down

0 comments on commit b9d761a

Please sign in to comment.