Skip to content

Commit

Permalink
ci: add cpplint
Browse files Browse the repository at this point in the history
  • Loading branch information
Inseon Yu(Merlyn) committed Oct 6, 2023
1 parent 517b24a commit 9cc44fd
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,25 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DoozyX/[email protected]
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Python for cpplint
uses: actions/setup-python@v4
with:
python-version: "3.x"

- name: Install cpplint
run: pip install cpplint

- name: Run cpplint
run: find . -iname "*.h" -o -iname "*.cc" | grep -v -e "^./tachyon/base/" -e "^./tachyon/device/" | xargs cpplint --filter=-legal/copyright,-whitespace/line_length,-build/namespaces,-runtime/references

- name: Run clang-format lint
uses: DoozyX/[email protected]
with:
source: '.'
exclude: './lib'
extensions: 'h,cc'
source: "."
exclude: "./lib"
extensions: "h,cc"
clangFormatVersion: 15
inplace: True

0 comments on commit 9cc44fd

Please sign in to comment.