Closed kirillt closed 6 months ago
Repository secret SONAR_TOKEN
is created.
That's what official docs say, but we did it a bit different way in arklib-android
:
Update your
build.gradle.kts
file with theorg.sonarqube
plugin and its configuration:plugins { id("org.sonarqube") version "4.4.1.3373" }
sonar { properties { property("sonar.projectKey", "ARK-Builders_ARK-Navigator") property("sonar.organization", "ark-builders") property("sonar.host.url", "https://sonarcloud.io") } }
> Create or update your `.github/workflows/build.yml`. Here is a base configuration to run a SonarCloud analysis on your master branch and Pull Requests. If you already have some GitHub Actions, you might want to just add some of these new steps to an existing one.
name: SonarCloud on: push: branches:
First resolve warnings using local analysis tool: https://github.com/ARK-Builders/ARK-Navigator/issues/405
Assigned this to Hieu since we've just done same job in arklib-android
.
Let's have similar SonarCloud integration:
We also need to check current warnings and fix those which are quick to fix: Reference issue: https://github.com/ARK-Builders/ARK-Navigator/issues/405