From 181c5b96b692c12099800bb9d73a8a46243ffcfd Mon Sep 17 00:00:00 2001 From: Masaya Kataoka Date: Fri, 20 Sep 2024 12:33:05 +0900 Subject: [PATCH 1/3] add sonar-project.properties Signed-off-by: Masaya Kataoka --- sonar-project.properties | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 sonar-project.properties diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 00000000000..02cf0fb8809 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,13 @@ +sonar.projectKey=tier4_scenario_simulator_v2 +sonar.organization=tier4 + +# This is the name and version displayed in the SonarCloud UI. +sonar.projectName=scenario_simulator_v2 +sonar.projectVersion=1.0 + +sonar.sources=src + +# Encoding of the source code. Default is default system encoding +sonar.sourceEncoding=UTF-8 + +# sonar.javascript.lcov.reportPaths=coverage/lcov.info From b6199925294af9f5c0105fd8a4bd189d1ac3a498 Mon Sep 17 00:00:00 2001 From: Masaya Kataoka Date: Fri, 27 Sep 2024 15:04:47 +0900 Subject: [PATCH 2/3] add sonar cloud settings Signed-off-by: Masaya Kataoka --- .github/workflows/BuildAndRun.yaml | 2 +- sonar-project.properties | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/BuildAndRun.yaml b/.github/workflows/BuildAndRun.yaml index a3c60817bef..fdf30f65e2a 100644 --- a/.github/workflows/BuildAndRun.yaml +++ b/.github/workflows/BuildAndRun.yaml @@ -82,7 +82,7 @@ jobs: source /opt/ros/${{ matrix.rosdistro }}/setup.bash source install/local_setup.bash colcon test --event-handlers console_cohesion+ --packages-select ${{ steps.list_packages.outputs.package_list }} - colcon lcov-result --packages-select cpp_mock_scenarios + colcon lcov-result --packages-select ${{ steps.list_packages.outputs.package_list }} shell: bash - name: Show test result diff --git a/sonar-project.properties b/sonar-project.properties index 02cf0fb8809..529e1acf78a 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -5,9 +5,9 @@ sonar.organization=tier4 sonar.projectName=scenario_simulator_v2 sonar.projectVersion=1.0 -sonar.sources=src +sonar.sources=/src # Encoding of the source code. Default is default system encoding sonar.sourceEncoding=UTF-8 -# sonar.javascript.lcov.reportPaths=coverage/lcov.info +sonar.cfamily.gcov.reportsPath=/lcov/total_coverage.info From cce0a1c20901193d1eeacfa6b6d2a9b8422adcaa Mon Sep 17 00:00:00 2001 From: Masaya Kataoka Date: Fri, 27 Sep 2024 15:18:17 +0900 Subject: [PATCH 3/3] add "cfamily" to the custom spell.json Signed-off-by: Masaya Kataoka --- .github/workflows/custom_spell.json | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/custom_spell.json b/.github/workflows/custom_spell.json index b9638744476..b6d867938e2 100644 --- a/.github/workflows/custom_spell.json +++ b/.github/workflows/custom_spell.json @@ -5,6 +5,7 @@ "AUTORCC", "Canonicalized", "canonicalizing", + "cfamily", "classname", "Cmyk", "Dawid",