Skip to content

Commit e34376a

Browse files
initial SonarCloud setup
1 parent 2d8dad4 commit e34376a

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
jobs:
9+
sonarcloud:
10+
name: SonarCloud
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
16+
- name: SonarCloud Scan
17+
uses: SonarSource/sonarcloud-github-action@master
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
20+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

sonar-project.properties

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
# use SONAR_TOKEN environment variable for https://sonarcloud.io
3+
# ensure SonarCloud's SONAR_TOKEN environment variable is not set when using SonarQube
4+
sonar.projectKey=Trivadis-plsql-and-sql-coding-guidelines
5+
sonar.organization=tvd
6+
7+
# This is the name and version displayed in the SonarCloud UI.
8+
sonar.projectName=SQL & PL/SQL Guidelines
9+
sonar.projectVersion=4.3-SNAPSHOT
10+
11+
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
12+
sonar.sources=docs
13+
14+
# Encoding of the source code. Default is default system encoding
15+
#sonar.sourceEncoding=UTF-8
16+
17+
# File in Genric Issue Import Format produced by db* CODECOP CLI
18+
#sonar.externalIssuesReportPaths=tvdcc_report.json
19+
20+
# Change the default list of suffixes for the SonarPLSQL plugin in https://sonarcloud.io
21+
sonar.plsql.file.suffixes=md

0 commit comments

Comments
 (0)