ci(sonarqube): add non-blocking SonarQube analysis (project key Runic-Gateway-Android-app) #19

Merged
whitlocktech merged 1 commits from ci/sonarqube-fix-project-key into main 2026-07-21 04:32:37 +00:00
Member

Supersedes #18. Same change, with the corrected case-sensitive project key.

The SonarQube server already has a project keyed Runic-Gateway-Android-app and refuses to create a case-variant (runic-gateway-android-app) duplicate, so sonar.projectKey now matches the existing key.

What

  • sonar-project.properties — project key Runic-Gateway-Android-app, sources app/src/main (Kotlin), tests app/src/test, excludes build//.gradle//generated/. Commented-out Android Lint + JaCoCo hooks for later.
  • .gitea/workflows/sonarqube.ymlSonarQube workflow on push to main (+ workflow_dispatch); full-history checkout + sonarsource/sonarqube-scan-action@v4.

Notes

  • Non-blocking (post-merge only), source-based scan — no Gradle build / Android SDK / JDK install needed.
  • app/src/androidTest doesn't exist yet, so it's left out of sonar.tests — noted inline.
  • One-time Gitea setup still required: secret SONAR_TOKEN + variable SONAR_HOST_URL.
  • Documented in RunicGateway/docs#27 (docs/ci/SONARQUBE.md).

AI-assisted: authored with Claude Code (Anthropic). Commit trailer records Co-Authored-By: Claude.

🤖 Generated with Claude Code

Supersedes #18. Same change, with the corrected **case-sensitive** project key. The SonarQube server already has a project keyed `Runic-Gateway-Android-app` and refuses to create a case-variant (`runic-gateway-android-app`) duplicate, so `sonar.projectKey` now matches the existing key. ## What - `sonar-project.properties` — project key `Runic-Gateway-Android-app`, sources `app/src/main` (Kotlin), tests `app/src/test`, excludes `build/`/`.gradle/`/`generated/`. Commented-out Android Lint + JaCoCo hooks for later. - `.gitea/workflows/sonarqube.yml` — `SonarQube` workflow on push to `main` (+ `workflow_dispatch`); full-history checkout + `sonarsource/sonarqube-scan-action@v4`. ## Notes - Non-blocking (post-merge only), source-based scan — no Gradle build / Android SDK / JDK install needed. - `app/src/androidTest` doesn't exist yet, so it's left out of `sonar.tests` — noted inline. - One-time Gitea setup still required: secret `SONAR_TOKEN` + variable `SONAR_HOST_URL`. - Documented in RunicGateway/docs#27 (`docs/ci/SONARQUBE.md`). AI-assisted: authored with Claude Code (Anthropic). Commit trailer records `Co-Authored-By: Claude`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
wtclaude added 1 commit 2026-07-21 04:21:48 +00:00
ci(sonarqube): add non-blocking SonarQube analysis on push to main
All checks were successful
PR Checks / android-build (pull_request) Successful in 10m42s
402d750138
Mirrors the website repo's setup: a source-based scan of app/src/main
(Kotlin) that reports to the self-hosted SonarQube server after merge,
never gating PRs.

Uses the existing SonarQube project key Runic-Gateway-Android-app (the
server rejects re-creating a case-variant key). Supersedes #18.

Co-Authored-By: Claude <noreply@anthropic.com>
whitlocktech approved these changes 2026-07-21 04:25:53 +00:00
whitlocktech scheduled this pull request to auto merge when all checks succeed 2026-07-21 04:25:57 +00:00
whitlocktech merged commit f729b772fc into main 2026-07-21 04:32:37 +00:00
whitlocktech deleted branch ci/sonarqube-fix-project-key 2026-07-21 04:32:38 +00:00
Sign in to join this conversation.
No description provided.