Skip to content

Commit 4aeae1a

Browse files
Merge pull request #170 from Trivadis/feature/issue-169-sonarcloud
Feature/issue 169 sonarcloud
2 parents e34376a + b5c75ca commit 4aeae1a

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
push:
44
branches:
55
- main
6+
- feature/**
7+
- bugfix/**
68
pull_request:
79
types: [opened, synchronize, reopened]
810
jobs:
@@ -13,6 +15,17 @@ jobs:
1315
- uses: actions/checkout@v2
1416
with:
1517
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
18+
- name: db* CODECOP Issues
19+
run: |
20+
export COP=4.3.0
21+
export VALIDATOR=4.3.0
22+
wget https://github.com/Trivadis/plsql-cop-cli/releases/download/v$COP/tvdcc-$COP.zip
23+
unzip tvdcc-$COP.zip -d .
24+
wget -P tvdcc-$COP/plugin/ https://github.com/Trivadis/plsql-cop-validators/releases/download/v$VALIDATOR/sonar-plsql-cop-custom-validators-plugin-$VALIDATOR.jar
25+
echo $TVDCC_LIC | base64 -d > tvdcc-$COP/tvdcc.lic
26+
tvdcc-$COP/tvdcc.sh path=docs skip=none html=false excel=false validator=com.trivadis.tvdcc.validators.TrivadisGuidelines3Plus
27+
env:
28+
TVDCC_LIC: ${{ secrets.TVDCC_LIC }}
1629
- name: SonarCloud Scan
1730
uses: SonarSource/sonarcloud-github-action@master
1831
env:

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ sonar.sources=docs
1515
#sonar.sourceEncoding=UTF-8
1616

1717
# File in Genric Issue Import Format produced by db* CODECOP CLI
18-
#sonar.externalIssuesReportPaths=tvdcc_report.json
18+
sonar.externalIssuesReportPaths=tvdcc_report.json
1919

2020
# Change the default list of suffixes for the SonarPLSQL plugin in https://sonarcloud.io
2121
sonar.plsql.file.suffixes=md

0 commit comments

Comments
 (0)