From 0d610ed8363da3c13d9f6bd58fead2506a59b9bb Mon Sep 17 00:00:00 2001 From: TomasVotruba Date: Sat, 25 Jan 2020 18:34:58 +0100 Subject: [PATCH] add sonacrube --- .github/workflows/sonarcube.yaml | 13 +++++++++++++ sonar-project.properties | 10 ++++++++++ 2 files changed, 23 insertions(+) create mode 100644 .github/workflows/sonarcube.yaml create mode 100644 sonar-project.properties diff --git a/.github/workflows/sonarcube.yaml b/.github/workflows/sonarcube.yaml new file mode 100644 index 00000000000..64572b52f0b --- /dev/null +++ b/.github/workflows/sonarcube.yaml @@ -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 }} diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 00000000000..25158356ad9 --- /dev/null +++ b/sonar-project.properties @@ -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