try regex escaped #8
Workflow file for this run
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
name: Code Style Check | |
on: [push] | |
jobs: | |
formatting-check: | |
name: Check format of C | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Run clang-format style check for C/C++ sources | |
uses: Northeastern-Electric-Racing/clang-format-action@main | |
with: | |
clang-format-version: '17' | |
# only check core, embedded base covered internally | |
check-path: "Core/" | |
# massive regex to exclude anything CubeMX generated, could require tweaking | |
exclude-regex: "/stm32.*|main.(c|h)|freertos.*|sys.*|(system|startup)_stm32.*/ig" | |
# use the clang-format from embedded base | |
format-filepath: "./Drivers/Embedded-Base/clang-format" |