[CI] add SonarCube (#2758)

[CI] add SonarCube
This commit is contained in:
Tomas Votruba 2020-01-25 21:44:20 +01:00 committed by GitHub
commit ee41458c68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 0 deletions

13
.github/workflows/sonarcube.yaml vendored Normal file
View File

@ -0,0 +1,13 @@
name: SonarCube
on: push
jobs:
sonnar_cloud:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

10
sonar-project.properties Normal file
View File

@ -0,0 +1,10 @@
# see https://sonarcloud.io/documentation/project-administration/narrowing-the-focus/
sonar.organization=rectorphp
sonar.projectKey=rectorphp_rector
# relative paths to source
sonar.sources=compiler,packages,src
sonar.tests=tests
# see https://docs.sonarqube.org/latest/project-administration/narrowing-the-focus/#NarrowingtheFocus-patterns
sonar.exclusions=**/**/*.php.inc