Skip to content

Commit

Permalink
add cpplint dependence (#296)
Browse files Browse the repository at this point in the history
* add cpplint dependence and add cpp scan into lint task
* ignore cpplint fail

Signed-off-by: luoxiaoc <[email protected]>
  • Loading branch information
killight98 committed Aug 10, 2022
1 parent bceccfc commit f945e60
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 22 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ jobs:
.venv\Scripts\activate.ps1
flakeheaven lint src/lava tests/
- name: Run cpplint for cpp_message_infrastructure
if: runner.os == 'Linux'
run: |
source $VENV
cpplint --quiet --root=src/lava/magma/runtime/cpp_message_infrastructure/src/*.cc src/lava/magma/runtime/cpp_message_infrastructure/include/*.h
continue-on-error: true

security-lint:
name: Security Lint Code
runs-on: ubuntu-latest
Expand Down
60 changes: 38 additions & 22 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ sphinx_rtd_theme = { extras = ["toml"], version = "^1.0.0" }
unittest2 = "^1.1.0"
autopep8 = "^1.6.0"
ipykernel = "^6.15.0"
cpplint = "^1.6.0"

[tool.black]
line-length = 80
Expand Down

0 comments on commit f945e60

Please sign in to comment.