-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add static analysis action (#137)
* ci: add static analysis action (need to figure out / make a good build target for it * suppress cstyleCast * fix: static analysis findings * fix: builds * fix sa * ignore magic_enum.hpp in static analysis * add maybe_unused to variable in generated states; update config in ads1x15 * update to suppress magic_enum as well? * doc: rebuild * WIP fixing magic_enum SA erorrs * replace magic_enum header in state_machine include folder with magic_enum external git submodule (also updated from magic enum 0.8 to 0.9.5 (master) * remove unused config in static analysis (esp. since with the magic_enum update the SA doesnt take more than a minute or two :) )
- Loading branch information
Showing
163 changed files
with
809 additions
and
2,196 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,25 @@ | ||
name: Static analysis | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
static_analysis: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Run static analysis | ||
uses: esp-cpp/StaticAnalysis@master | ||
with: | ||
# Do not build the project and do not use cmake to generate compile_commands.json | ||
use_cmake: false | ||
|
||
# Use the 5.2 release version since it's what we build with | ||
esp_idf_version: release/v5.2 | ||
|
||
# (Optional) cppcheck args | ||
cppcheck_args: -i$GITHUB_WORKSPACE/lib -i$GITHUB_WORKSPACE/external -i$GITHUB_WORKSPACE/components/esp_littlefs -i$GITHUB_WORKSPACE/components/lvgl -i$GITHUB_WORKSPACE/components/esp-dsp --force --enable=all --inline-suppr --inconclusive --platform=mips32 --suppressions-list=$GITHUB_WORKSPACE/suppressions.txt |
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 |
---|---|---|
|
@@ -25,3 +25,6 @@ | |
[submodule "lib/pybind11"] | ||
path = lib/pybind11 | ||
url = [email protected]:pybind/pybind11 | ||
[submodule "external/magic_enum"] | ||
path = external/magic_enum | ||
url = [email protected]:neargye/magic_enum |
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
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
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
Oops, something went wrong.