feat: Use clang-format to keep the C++ codebase clean (#1741)
* Use clang-format * Create .clang-format * Update .clang-format * Update .clang-format * Update .clang-format * Only search in cpp dirs * Update clang-format.sh * Update .clang-format * Update .clang-format * Update .clang-format * Format C++ code! * Use version 16 * Update clang-format.sh * Remove Shaders.ts * fix: Lint Swift
This commit is contained in:
28
.github/workflows/validate-cpp.yml
vendored
28
.github/workflows/validate-cpp.yml
vendored
@@ -8,29 +8,29 @@ on:
|
||||
- '.github/workflows/validate-cpp.yml'
|
||||
- 'cpp/**'
|
||||
- 'android/src/main/cpp/**'
|
||||
- 'ios/**'
|
||||
pull_request:
|
||||
paths:
|
||||
- '.github/workflows/validate-cpp.yml'
|
||||
- 'cpp/**'
|
||||
- 'android/src/main/cpp/**'
|
||||
- 'ios/**'
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: cpplint
|
||||
name: Check clang-format
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
path:
|
||||
- 'cpp'
|
||||
- 'android/src/main/cpp'
|
||||
- 'ios'
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: reviewdog/action-cpplint@master
|
||||
- name: Run clang-format style check
|
||||
uses: jidicula/clang-format-action@v4.11.0
|
||||
with:
|
||||
github_token: ${{ secrets.github_token }}
|
||||
reporter: github-pr-review
|
||||
flags: --linelength=230
|
||||
targets: --recursive cpp android/src/main/cpp
|
||||
filter: "-legal/copyright\
|
||||
,-readability/todo\
|
||||
,-build/namespaces\
|
||||
,-whitespace/comments\
|
||||
,-runtime/references\
|
||||
,-build/include_order\
|
||||
,-build/c++11\
|
||||
"
|
||||
clang-format-version: '16'
|
||||
check-path: ${{ matrix.path }}
|
||||
|
||||
|
Reference in New Issue
Block a user