-
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.
fix catch blocks to capture by reference (#8)
* fix catch blocks to capture by reference * add static analyzers * add suppressions file * fix cppcheck issues * more cppcheck fixes * Automated formatting of files (#9) Co-authored-by: Philip Top <[email protected]> Co-authored-by: HELICS-bot <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: HELICS-bot <[email protected]>
- Loading branch information
1 parent
0912199
commit d98448f
Showing
6 changed files
with
36 additions
and
49 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,27 @@ | ||
name: Static Analyzers | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
cpplint: | ||
runs-on: ubuntu-latest | ||
container: helics/buildenv:cpplint | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Run cpplint | ||
run: cpplint --counting=detailed --recursive gmlc/utilities tests | ||
cppcheck: | ||
runs-on: ubuntu-latest | ||
container: helics/buildenv:cppcheck2 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Run cppcheck | ||
run: cppcheck --enable=performance,portability --language=c++ --suppressions-list=config/cppcheck_suppressions.txt --error-exitcode=-4 -i gmlc/extra -i orig_code -i scripts -i config . |
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 @@ | ||
#unusedFunction:units/x12_conv.cpp:1024 | ||
arrayIndexOutOfBounds:gmlc/utilities/dpcomp.cpp |
This file was deleted.
Oops, something went wrong.
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