minor changes to sonar checks

This commit is contained in:
Proddy
2023-09-23 18:40:29 +02:00
parent 398cbadb64
commit f427288c06
4 changed files with 17 additions and 8 deletions

View File

@@ -1,8 +1,16 @@
#!/bin/sh
# make sure you add the soanr token here
# export SONAR_TOKEN=""
# This is an example file to run sonar from a Linux command line
# Run from the root of the project like `./scripts/run_sonar.sh`
# Follow the setup in Sonar for your prpject and make sure chmod 755 +x on all the files
# and make sure you set the token in the shell like export SONAR_TOKEN="eed5ee77e74042a275fed6f653c372452d5a21d0"
make clean
build-wrapper-linux-x86-64 --out-dir build_wrapper_output_directory make all
sonar-scanner
~/sonar/build-wrapper-linux-x86-64 --out-dir bw-output make all
~/sonar/sonar-scanner/bin/sonar-scanner \
-Dsonar.organization=proddy \
-Dsonar.projectKey=proddy_EMS-ESP32 \
-Dsonar.projectName=EMS-ESP32 \
-Dsonar.sources="./src, ./lib/framework" \
-Dsonar.cfamily.build-wrapper-output=bw-output \
-Dsonar.host.url=https://sonarcloud.io