Skip to content

Commit 2f833f3

Browse files
authored
Update sonarcloud.yml
1 parent b99d5df commit 2f833f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
cd /usr/src/gtest && sudo cmake . && sudo make && sudo cp lib/*.a /usr/lib
2727
cd $GITHUB_WORKSPACE
2828
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} \
29-
g++ -std=gnu++2a -O0 -g --coverage -ftest-coverage \
29+
g++ -std=gnu++2a -O0 -g --coverage -fprofile-arcs -ftest-coverage \
3030
backend/grammar.cpp \
3131
backend/grammar_factory.cpp \
3232
backend/ll1_parser.cpp \
@@ -45,7 +45,7 @@ jobs:
4545
run: |
4646
sudo apt-get update
4747
sudo apt-get install -y gcovr
48-
gcovr -r . --filter '.*backend/.*' --exclude-conditions --sonarqube --output coverage.xml
48+
gcovr -r . --filter '.*backend/.*' --exclude-unreachable-branches --exclude-throw-branches --sonarqube --output coverage.xml
4949
5050
5151
- name: SonarQube Scan

0 commit comments

Comments
 (0)