Skip to content

Commit

Permalink
Merge pull request #55 from owncloud/sonar-code-analyzer
Browse files Browse the repository at this point in the history
add sonar analyzer
  • Loading branch information
butonic authored Jul 10, 2020
2 parents 56ed1cc + c1dd1f7 commit 0fba218
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,16 @@ def testing(ctx):
},
},
},
{
'name': 'sonarcloud',
'image': 'sonarsource/sonar-scanner-cli',
'pull': 'always',
'environment': {
'SONAR_TOKEN': {
'from_secret': 'sonar_token',
},
},
},
],
'volumes': [
{
Expand Down
37 changes: 37 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

sonar.projectKey=owncloud_ocis-accounts
sonar.organization=owncloud-1
sonar.projectName=ownCloud Infinite Scale: ACCOUNTS
sonar.projectVersion=1.0
sonar.host.url=https://sonarcloud.io

# =====================================================
# Meta-data for the project
# =====================================================

sonar.links.homepage=https://github.com/owncloud/ocis-accounts
sonar.links.ci=https://cloud.drone.io/owncloud/ocis-accounts/
sonar.links.scm=https://github.com/owncloud/ocis-accounts
sonar.links.issue=https://github.com/owncloud/ocis-accounts/issues


# =====================================================
# Properties that will be shared amongst all modules
# =====================================================

# SQ standard properties
sonar.sources=.

# Pull Requests
sonar.pullrequest.provider=GitHub
sonar.pullrequest.github.repository=owncloud/ocis-accounts
sonar.pullrequest.base=${env.DRONE_BRANCH}
sonar.pullrequest.branch=${env.DRONE_SOURCE_BRANCH}
sonar.pullrequest.key=${env.DRONE_PULL_REQUEST}


# Properties specific to language plugins:
sonar.go.coverage.reportPaths=coverage.out

# Exclude protobuf files
sonar.exclusions=pkg/proto/**, changelog/**, docs/**, package.json, rollup.config.js, changelog.md

0 comments on commit 0fba218

Please sign in to comment.