forked from MetaMask/metamask-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add sonarqube to the extension (MetaMask#19304)
- Loading branch information
1 parent
3e79a74
commit ba6a271
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Sonar | ||
on: | ||
workflow_call: | ||
secrets: | ||
SONAR_TOKEN: | ||
required: true | ||
jobs: | ||
sonarcloud: | ||
name: SonarCloud | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for better relevancy of analysis | ||
- name: SonarCloud Scan | ||
# v1.9.1 | ||
uses: SonarSource/sonarcloud-github-action@5875562561d22a34be0c657405578705a169af6c | ||
with: | ||
args: > | ||
-Dsonar.javascript.lcov.reportPaths=tests/coverage/lcov.info | ||
env: | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
sonar.projectKey=metamask-extension | ||
sonar.organization=consensys | ||
|
||
# This is the name and version displayed in the SonarCloud UI. | ||
sonar.projectName=MetaMask Extension | ||
#sonar.projectVersion=1.0 | ||
|
||
# Root for sonar analysis. | ||
sonar.sources=app/ | ||
|
||
# Excluded project files from analysis. | ||
#sonar.exclusions= | ||
|
||
# Inclusions for test files. | ||
sonar.test.inclusions=**.test.** | ||
|
||
# Encoding of the source code. Default is default system encoding | ||
sonar.sourceEncoding=UTF-8 |