-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add linter bot * chore: add linter ignore * feat: add clang format ignore files * Committing clang-format changes Co-authored-by: openkraken-bot <[email protected]>
- Loading branch information
Showing
100 changed files
with
4,467 additions
and
5,518 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,25 @@ | ||
name: Run Code Linter | ||
|
||
on: [push] | ||
|
||
jobs: | ||
reformat-bridge: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: DoozyX/[email protected] | ||
with: | ||
source: './bridge' | ||
exclude: './bridge/third_party/*' | ||
extensions: 'h,cc,c' | ||
clangFormatVersion: 12 | ||
inplace: True | ||
- uses: EndBug/add-and-commit@v4 | ||
with: | ||
author_name: openkraken-bot | ||
author_email: [email protected] | ||
message: 'Committing clang-format changes' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
--- | ||
Language: Cpp | ||
BasedOnStyle: LLVM | ||
ColumnLimit: 120 | ||
AllowShortIfStatementsOnASingleLine: WithoutElse | ||
AllowShortFunctionsOnASingleLine: Empty | ||
ContinuationIndentWidth: 2 | ||
ConstructorInitializerIndentWidth: 2 | ||
# Defines the Chromium style for automatic reformatting. | ||
# http://clang.llvm.org/docs/ClangFormatStyleOptions.html | ||
BasedOnStyle: Chromium | ||
# This defaults to 'Auto'. Explicitly set it for a while, so that | ||
# 'vector<vector<int> >' in existing files gets formatted to | ||
# 'vector<vector<int>>'. ('Auto' means that clang-format will only use | ||
# 'int>>' if the file already contains at least one such instance.) | ||
Standard: c++17 | ||
ColumnLimit: 200 |
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,5 @@ | ||
./third_party | ||
./test | ||
./scripts | ||
./polyfill | ||
./cmake |
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
Oops, something went wrong.