diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml index e30a48e86781659e159c62a28cee30596077ab3f..30482b0eafb42ce4838d399b7050ec34d385ba77 100644 --- a/.github/workflows/sonarqube.yml +++ b/.github/workflows/sonarqube.yml @@ -2,9 +2,9 @@ name: SonarQube on: push: branches: - - '*' + - "*" pull_request: - types: [ opened, synchronize, reopened ] + types: [opened, synchronize, reopened] jobs: build: @@ -14,12 +14,12 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Set up JDK 21 uses: actions/setup-java@v4 with: java-version: 21 - distribution: 'zulu' # Alternative distribution options are available. + distribution: "zulu" # Alternative distribution options are available. - name: Cache SonarQube packages uses: actions/cache@v4 with: @@ -36,4 +36,4 @@ jobs: env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} - run: mvn -B org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=safetypin-be-auth -Dsonar.projectName='safetypin-be-auth' \ No newline at end of file + run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=safetypin-be-auth -Dsonar.projectName='safetypin-be-auth' diff --git a/pom.xml b/pom.xml index a63ccbe75f2dd4fdd2e922b756d2fa0629cd1ae7..c842d681db79a848694283de728b8faed9bad81a 100644 --- a/pom.xml +++ b/pom.xml @@ -304,26 +304,6 @@ <goal>report</goal> </goals> </execution> - <execution> - <id>check</id> - <goals> - <goal>check</goal> - </goals> - <configuration> - <rules> - <rule> - <element>BUNDLE</element> - <limits> - <limit> - <counter>LINE</counter> - <value>COVEREDRATIO</value> - <minimum>1.00</minimum> - </limit> - </limits> - </rule> - </rules> - </configuration> - </execution> </executions> </plugin> </plugins>