File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Cppcheck
2+
3+ on :
4+ push
5+
6+ jobs :
7+ check :
8+
9+ runs-on : windows-2025
10+
11+ steps :
12+ - name : Checkout
13+ uses : actions/checkout@v5
14+ - name : Install Cppcheck
15+ run : winget install --id Cppcheck.Cppcheck --disable-interactivity --accept-source-agreements
16+ - name : Check Cppcheck
17+ shell : cmd
18+ run : where cppcheck
19+ - name : Run Cppcheck
20+ run : |
21+ $env:Path += ";C:\Program Files\Cppcheck\"
22+ cppcheck --version
23+ $config = @"
24+ <?xml version="1.0"?>
25+ <def>
26+ <define name="CoCreatableClass(className)" value="" />
27+ </def>
28+ "@
29+ Set-Content -Path "config.cfg" -Value $config
30+ cppcheck --check-level=exhaustive --error-exitcode=-1 --enable=all --suppress=missingIncludeSystem --suppress=unusedFunction --quiet --project=IExplorerCommand_CppWinRT\IExplorerCommand_CppWinRT.vcxproj
31+ cppcheck --check-level=exhaustive --error-exitcode=-1 --library=config.cfg --enable=all --suppress=missingIncludeSystem --suppress=unusedFunction --quiet --project=IExplorerCommand_WRL\IExplorerCommand_WRL.vcxproj
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Examples of implementing IExplorerCommand Windows File Explorer context menu she
1010
1111## GitHub Actions status
1212
13- [ ![ Build] ( https://github.com/cjee21/IExplorerCommand-Examples/actions/workflows/build.yml/badge.svg )] ( https://github.com/cjee21/IExplorerCommand-Examples/actions/workflows/build.yml )
13+ [ ![ Build] ( https://github.com/cjee21/IExplorerCommand-Examples/actions/workflows/build.yml/badge.svg )] ( https://github.com/cjee21/IExplorerCommand-Examples/actions/workflows/build.yml ) [ ![ Cppcheck ] ( https://github.com/cjee21/IExplorerCommand-Examples/actions/workflows/cppcheck.yml/badge.svg )] ( https://github.com/cjee21/IExplorerCommand-Examples/actions/workflows/cppcheck.yml )
1414
1515## Other examples
1616
You can’t perform that action at this time.
0 commit comments