-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #264 from fschrempf/feature/code-formatting
Code Formatting via `clang-format`
- Loading branch information
Showing
64 changed files
with
4,946 additions
and
4,780 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,41 @@ | ||
--- | ||
BasedOnStyle: WebKit | ||
AlignArrayOfStructures: Right | ||
AlignConsecutiveBitFields: | ||
Enabled: true | ||
AlignConsecutiveMacros: | ||
Enabled: true | ||
AllowShortEnumsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: InlineOnly | ||
BreakBeforeBraces: Attach | ||
Cpp11BracedListStyle: true | ||
FixNamespaceComments: true | ||
IncludeBlocks: Regroup | ||
IncludeCategories: | ||
- Regex: Arduino.h | ||
Priority: -1 | ||
SortPriority: -2 | ||
CaseSensitive: true | ||
- Regex: settings.h | ||
Priority: -1 | ||
SortPriority: -1 | ||
CaseSensitive: true | ||
- Regex: ^" | ||
Priority: 1 | ||
SortPriority: 0 | ||
CaseSensitive: false | ||
- Regex: .* | ||
Priority: 4 | ||
SortPriority: 0 | ||
CaseSensitive: false | ||
IncludeIsMainRegex: (_test)?$ | ||
IndentCaseLabels: true | ||
IndentPPDirectives: BeforeHash | ||
InsertBraces: true | ||
InsertNewlineAtEOF: true | ||
NamespaceIndentation: None | ||
PointerAlignment: Right | ||
SpaceAfterCStyleCast: true | ||
Standard: Auto | ||
TabWidth: 4 | ||
UseTab: Always |
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 @@ | ||
# | ||
# This file lists commit hashes for commits that should be ignored when | ||
# using "git blame". This allows to hide major code reworks like formatting | ||
# changes from the "git blame" history. | ||
# |
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,2 @@ | ||
[blame] | ||
ignoreRevsFile = .git-blame-ignore-revs |
This file was deleted.
Oops, something went wrong.
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,15 @@ | ||
name: clang-format-check | ||
run-name: Clang-format Check | ||
on: [workflow_dispatch, push, pull_request] | ||
jobs: | ||
formatting-check: | ||
name: Formatting Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run clang-format style check for C/C++/Protobuf programs. | ||
uses: jidicula/[email protected] | ||
with: | ||
clang-format-version: '16' | ||
check-path: 'src' | ||
fallback-style: 'LLVM' # optional |
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,58 @@ | ||
name: build-all | ||
run-name: Build all boards | ||
on: | ||
workflow_dispatch: | ||
push: | ||
pull_request: | ||
paths: | ||
- 'src/*' | ||
- 'html/*' | ||
- 'test/*' | ||
- '**.ini' | ||
- '**.py' | ||
- '**.csv' | ||
|
||
jobs: | ||
test_builds: | ||
name: Run all Tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
variant: | ||
- esp32-a1s | ||
- lolin32 | ||
- lolin_d32 | ||
- lolin_d32_pro | ||
- lolin_d32_pro_sdmmc_pe | ||
- nodemcu-32s | ||
- az-delivery-devkit-v4 | ||
- ttgo_t8 | ||
- complete | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Cache pip | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Cache PlatformIO | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.platformio | ||
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} | ||
|
||
- name: Setup Python 3.9 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
- name: Install PlatformIO Core | ||
run: | | ||
pip install -U setuptools platformio | ||
pio upgrade --dev | ||
pio pkg update --global | ||
- name: Build ${{ matrix.variant }} | ||
run: platformio run -e ${{ matrix.variant }} |
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,3 +1,7 @@ | ||
{ | ||
"cmake.configureOnOpen": false | ||
} | ||
"cmake.configureOnOpen": false, | ||
"editor.tabSize": 4, | ||
"gitlens.advanced.blame.customArguments": [ | ||
"--ignore-revs-file", ".git-blame-ignore-revs" | ||
] | ||
} |
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.