Skip to content

Fix violation of G-8110 #61

Fix violation of G-8110

Fix violation of G-8110 #61

Workflow file for this run

name: Build
on:
push:
branches:
- main
- feature/**
- bugfix/**
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
if: github.repository == 'Trivadis/plsql-and-sql-coding-guidelines'
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: db* CODECOP Issues
run: |
export COP=4.3.1
export VALIDATOR=4.3.1
wget https://github.com/Trivadis/plsql-cop-cli/releases/download/v$COP/tvdcc-$COP.zip
unzip tvdcc-$COP.zip -d .
wget -P tvdcc-$COP/plugin/ https://github.com/Trivadis/plsql-cop-validators/releases/download/v$VALIDATOR/sonar-plsql-cop-custom-validators-plugin-$VALIDATOR.jar
echo $TVDCC_LIC | base64 -d > tvdcc-$COP/tvdcc.lic
tvdcc-$COP/tvdcc.sh path=docs skip=0 html=false excel=false validator=com.trivadis.tvdcc.validators.TrivadisGuidelines3Plus
env:
TVDCC_LIC: ${{ secrets.TVDCC_LIC }}
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}