-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
afbbf0e
commit b2314b8
Showing
7 changed files
with
57 additions
and
10 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,20 @@ | ||
name: code_style | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
cpplint: | ||
timeout-minutes: 1 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: pip3 install cpplint | ||
- name: cpplint cyphal | ||
run: | | ||
cpplint Src/cyphal_application/*pp Src/cyphal_application/modules/*/*pp |
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,27 @@ | ||
# CPPLINT.cfg | ||
|
||
# Stop searching for additional config files. | ||
set noparent | ||
|
||
# Increase limit line length because 80 it's not enough | ||
linelength=100 | ||
|
||
# Actually, it's a good requirement, it's better to fix it soon | ||
filter=-build/header_guard | ||
|
||
# Ignore requirement to include "foo/bar.h" instead of just "bar.h" | ||
filter=-build/include_subdir | ||
|
||
# Ignore requirement to use copyright | ||
filter=-legal/copyright | ||
|
||
# Ignore too much complications with spaces | ||
filter=-whitespace/braces | ||
filter=-whitespace/parens | ||
filter=-whitespace/indent | ||
|
||
# This this is not C++, C-style cast is the only way to perform cast | ||
filter=-readability/casting | ||
filter=-build/include_what_you_use | ||
|
||
filter=-runtime/arrays |
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
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
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