Skip to content

Commit

Permalink
Merge pull request deep5050#17 from deep5050/issue-16-unrecognized_co…
Browse files Browse the repository at this point in the history
…mmand_line_option_E_when_enabling_skip_preprocessor

Issue 16 unrecognized command line option e when enabling skip preprocessor
  • Loading branch information
deep5050 authored Dec 18, 2020
2 parents 23477d1 + 4c20681 commit 518ea25
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,20 @@ jobs:
- uses: actions/checkout@v2

- name: cppcheck
uses: deep5050/cppcheck-action@main
uses: ./
with:
github_token: ${{ secrets.GITHUB_TOKEN}}
max_ctu_depth: 4

skip_preprocessor: enable
check_library: disable
inconclusive: enable
inline_suppression: disable
platform: disable

- name: publish report
uses: mikeal/publish-to-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH_NAME: 'main'
BRANCH_NAME: main


3 changes: 2 additions & 1 deletion src/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def prepare_command():
command = command + " --check-library"

if SKIP_PREPROCESSOR == "enable":
command = command + " --E"
command = command + " -E"

enable_val = "all" # default fallback value

Expand Down Expand Up @@ -107,6 +107,7 @@ def run_cppcheck():
print("given command " + command)
print("checking version")
sp.call("cppcheck --version", shell=True)
sp.call("cppcheck --help",shell=True)
sp.call(command, shell=True)


Expand Down

0 comments on commit 518ea25

Please sign in to comment.