Skip to content

Commit 64ad72e

Browse files
committed
add sonarcloud
1 parent 8105a30 commit 64ad72e

File tree

3 files changed

+33
-1
lines changed

3 files changed

+33
-1
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: Release
2-
32
on:
43
release:
54
types: [published]

.github/workflows/sonar.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: SonarQube
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
9+
jobs:
10+
sonarqube:
11+
name: SonarQube
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
- name: SonarQube Scan
18+
uses: SonarSource/sonarqube-scan-action@v4
19+
env:
20+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

sonar-project.properties

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
sonar.projectKey=jonathanalgar_CustomCode-Analyzer-Generator
2+
sonar.organization=jonathanalgar
3+
4+
# This is the name and version displayed in the SonarCloud UI.
5+
#sonar.projectName=CustomCode-Analyzer-Generator
6+
#sonar.projectVersion=1.0
7+
8+
9+
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
10+
#sonar.sources=.
11+
12+
# Encoding of the source code. Default is default system encoding
13+
#sonar.sourceEncoding=UTF-8

0 commit comments

Comments
 (0)