Skip to content

try with clang format ignore and format #2

try with clang format ignore and format

try with clang format ignore and format #2

Workflow file for this run

name: Code Style Check
on: [push]
jobs:
formatting-check:
name: Check format of C
runs-on: ubuntu-latest
strategy:
matrix:
path:
- check: 'CM4/Core'
- check: 'CM7/Core'
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: '18'
# only check core, embedded base covered internally
check-path: ${{ matrix.path['check'] }}
# massive regex to exclude anything CubeMX generated, could require tweaking. Uses posix extended
exclude-regex: "/stm32.*|main.(c|h)|freertos.*|FreeRTOS.*|sys.*|(system|startup)_stm32.*/ig"
# use the clang-format from embedded base
format-filepath: "./Drivers/Embedded-Base/clang-format"