forked from eclipse-wakaama/wakaama
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Use CodeChecker as static analysis tool
CodeChecker combines multiple static code analysis tools including `clang-sa`. Moreover it is simpler to use. It could eventually replace `clang-sa` completely in the pipeline.
- Loading branch information
1 parent
1f57c8e
commit 0f53d89
Showing
5 changed files
with
84 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Clang Static Analyzer | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
clang_static_analyzer: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout code including full history and submodules | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
|
||
- name: Install CodeChecker | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install clang-tools-14 cmake cppcheck libcunit1-dev ninja-build unzip wget | ||
pip3 install codechecker | ||
- name: Run CodeChecker | ||
run: | | ||
run: tools/ci/run_ci.sh --run-build --run-code-checker | ||
- name: Upload CodeChecker reports | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: CodeChecker Reports | ||
path: build-wakaama/codechecker_report |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"analyze": [ | ||
"--disable=cplusplus", | ||
"--disable=cppcheck-exceptDeallocThrow", | ||
"--disable=cppcheck-exceptThrowInDestructor", | ||
"--disable=cppcheck-leakUnsafeArgAlloc", | ||
"--disable=cppcheck-rethrowNoCurrentException", | ||
"--disable=cppcheck-thisSubtraction", | ||
"--disable=cppcheck-throwInNoexceptFunction", | ||
"--clean" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-*/examples/shared/tinydtls/* | ||
-*/tests/* |