Skip to content

Commit

Permalink
Chore/add sonar cloud code scan (#161)
Browse files Browse the repository at this point in the history
* chore: adds the initial implementation of the SonarCloud into the CI

* chore: adds the initial implementation of the SonarCloud into the CI
  • Loading branch information
christopherferreira9 committed Jun 19, 2024
1 parent 9e0b52c commit 399e400
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Main

on:
push:
branches: [main]
pull_request:

jobs:
sonarcloud-scan:
name: Run SonarCloud Scan
uses: MetaMask/metamask-sdk/.github/workflows/sonar-cloud.yml@535a911b02d28a61ab305841f8b14b83e91c7000
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
15 changes: 15 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Unique sonar data by project
sonar.projectKey=metamask-sdk
sonar.organization=metamask

# Source
sonar.sources=Sources/metamask-ios-sdk/Classes
sonar.exclusions=Exammple/**

# Tests
# sonar.tests=src,test
# sonar.test.inclusions=**/*.test.js,**/*.test.ts,**/*.test.tsx
# sonar.javascript.lcov.reportPaths=coverage/coverage/lcov.info

# Block PRs with quality gate failures
sonar.qualitygate.wait=false

0 comments on commit 399e400

Please sign in to comment.