Skip to content
Snippets Groups Projects
Commit 91c57182 authored by q3k's avatar q3k
Browse files

ci: run clang-format

parent 84c3cf1f
No related branches found
No related tags found
No related merge requests found
---
BasedOnStyle: Google
IndentWidth: 4
IncludeBlocks: Preserve
...@@ -38,6 +38,12 @@ mypy: ...@@ -38,6 +38,12 @@ mypy:
reports: reports:
codequality: cqual.json codequality: cqual.json
format:
stage: check
script:
- "bash tools/format.sh"
- "[ -z \"$(git status --porcelain -u no)\" ] || (echo 'Differences found, please run tools/format.sh.' && git diff HEAD && exit 1)"
build-p3: build-p3:
stage: build stage: build
script: script:
......
#!/usr/bin/env bash
set -e -x
find . \
-type d \
\( \
-path './build' -o \
-path './recovery/build' -o \
-path './components/micropython/vendor' -o \
-path './components/tinyusb' -o \
-path './components/ctx' -o \
-path './sim' \
\) -prune \
-o \
-name '*.[ch]' \
-exec clang-format -i \{\} \;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment