Skip to content

Commit f427288

Browse files
committed
minor changes to sonar checks
1 parent 398cbad commit f427288

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed

.github/workflows/sonar_check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
# if: github.repository_owner == 'emsesp'
1313
# if: github.repository == 'emsesp/EMS-ESP32'
1414
env:
15-
BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory
15+
BUILD_WRAPPER_OUT_DIR: bw-output
1616
steps:
1717
- uses: actions/checkout@v3
1818
with:

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ interface/src/i18n/i18n-util.async.ts
5353
# sonar
5454
.scannerwork/
5555
sonar/
56-
build_wrapper_output_directory/
56+
bw-output/
5757

5858
# entity dump results
5959
# dump_entities.csv
6060
# dump_entities.xls*
61+

scripts/run_sonar.sh

+13-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
#!/bin/sh
2-
3-
# make sure you add the soanr token here
4-
# export SONAR_TOKEN=""
2+
# This is an example file to run sonar from a Linux command line
3+
# Run from the root of the project like `./scripts/run_sonar.sh`
4+
# Follow the setup in Sonar for your prpject and make sure chmod 755 +x on all the files
5+
# and make sure you set the token in the shell like export SONAR_TOKEN="eed5ee77e74042a275fed6f653c372452d5a21d0"
56

67
make clean
7-
build-wrapper-linux-x86-64 --out-dir build_wrapper_output_directory make all
8-
sonar-scanner
8+
~/sonar/build-wrapper-linux-x86-64 --out-dir bw-output make all
9+
10+
~/sonar/sonar-scanner/bin/sonar-scanner \
11+
-Dsonar.organization=proddy \
12+
-Dsonar.projectKey=proddy_EMS-ESP32 \
13+
-Dsonar.projectName=EMS-ESP32 \
14+
-Dsonar.sources="./src, ./lib/framework" \
15+
-Dsonar.cfamily.build-wrapper-output=bw-output \
16+
-Dsonar.host.url=https://sonarcloud.io

sonar-project.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ sonar.projectKey=emsesp_EMS-ESP32
33
sonar.projectName=EMS-ESP32
44
sonar.projectVersion=3.6.0
55
sonar.sources=./src
6-
sonar.cfamily.build-wrapper-output=build_wrapper_output_directory
6+
sonar.cfamily.build-wrapper-output=bw-output
77
sonar.sourceEncoding=UTF-8
88
sonar.host.url=https://sonarcloud.io
99
# sonar.cfamily.threads=4

0 commit comments

Comments
 (0)