mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
minor changes to sonar checks
This commit is contained in:
2
.github/workflows/sonar_check.yml
vendored
2
.github/workflows/sonar_check.yml
vendored
@@ -12,7 +12,7 @@ jobs:
|
|||||||
# if: github.repository_owner == 'emsesp'
|
# if: github.repository_owner == 'emsesp'
|
||||||
# if: github.repository == 'emsesp/EMS-ESP32'
|
# if: github.repository == 'emsesp/EMS-ESP32'
|
||||||
env:
|
env:
|
||||||
BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory
|
BUILD_WRAPPER_OUT_DIR: bw-output
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -53,8 +53,9 @@ interface/src/i18n/i18n-util.async.ts
|
|||||||
# sonar
|
# sonar
|
||||||
.scannerwork/
|
.scannerwork/
|
||||||
sonar/
|
sonar/
|
||||||
build_wrapper_output_directory/
|
bw-output/
|
||||||
|
|
||||||
# entity dump results
|
# entity dump results
|
||||||
# dump_entities.csv
|
# dump_entities.csv
|
||||||
# dump_entities.xls*
|
# dump_entities.xls*
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,16 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# This is an example file to run sonar from a Linux command line
|
||||||
# make sure you add the soanr token here
|
# Run from the root of the project like `./scripts/run_sonar.sh`
|
||||||
# export SONAR_TOKEN=""
|
# 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
|
make clean
|
||||||
build-wrapper-linux-x86-64 --out-dir build_wrapper_output_directory make all
|
~/sonar/build-wrapper-linux-x86-64 --out-dir bw-output make all
|
||||||
sonar-scanner
|
|
||||||
|
~/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
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ sonar.projectKey=emsesp_EMS-ESP32
|
|||||||
sonar.projectName=EMS-ESP32
|
sonar.projectName=EMS-ESP32
|
||||||
sonar.projectVersion=3.6.0
|
sonar.projectVersion=3.6.0
|
||||||
sonar.sources=./src
|
sonar.sources=./src
|
||||||
sonar.cfamily.build-wrapper-output=build_wrapper_output_directory
|
sonar.cfamily.build-wrapper-output=bw-output
|
||||||
sonar.sourceEncoding=UTF-8
|
sonar.sourceEncoding=UTF-8
|
||||||
sonar.host.url=https://sonarcloud.io
|
sonar.host.url=https://sonarcloud.io
|
||||||
# sonar.cfamily.threads=4
|
# sonar.cfamily.threads=4
|
||||||
|
|||||||
Reference in New Issue
Block a user