Skip to content

Commit

Permalink
Update sonarqube.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmeet29 authored Jun 20, 2024
1 parent 903b85b commit 78e7035
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,15 @@ jobs:
- name: Analyze with SonarQube
uses: SonarSource/sonarqube-scan-action@master

Check warning on line 60 in .github/workflows/sonarqube.yml

View check run for this annotation

In Solidarity / Inclusive Language

Match Found

Please consider an alternative to `master`. Possibilities include: `primary`, `main`, `leader`, `active`, `writer`
Raw output
/\b(?!masterdata|masterdata\w+\b)master/gi
env:
GITHUB_TOKEN: ${{ secrets.SDM_CAP_GITHUB_TOKEN }} # Needed to get PR information
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # Generate a token on SonarQube, add it to the secrets of this repo with the name SONAR_TOKEN (Settings > Secrets > Actions > add new repository secret)
SONAR_HOST_URL: https://sonar.tools.sap # add the URL of your instance to the secrets of this repo with the name SONAR_HOST_URL (Settings > Secrets > Actions > add new repository secret)
with:
# Additional arguments for the sonarcloud scanner
args:
-Dsonar.projectKey=cap-js-sdm
-Dsonar.sources=lib
-Dsonar.sources=.
-Dsonar.exclusions=**/node_modules/**
-Dsonar.js.file.suffixes=.js,.jsx
-Dsonar.js.file.suffixes=.js
-Dsonar.qualitygate.wait=true
-Dsonar.exclusions=/dist/,/node_modules/,**/*.spec.js,**/*.test.js
-Dsonar.verbose=false # This should generally be set to `false` in a production environment to not clutter logs. Use `true` for debugging.
Expand Down

0 comments on commit 78e7035

Please sign in to comment.