Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
fail_fast: false
repos:
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
hooks:
- id: clang-format
args: [--style=Google]
# - id: clang-tidy
19 changes: 19 additions & 0 deletions commit_hook_instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
For pre commit hooks install the following. Note that clang-tidy is only readily available on linux. Clang-tidy has to be built manually in other OS.
If using linux, uncomment line 9 to use clang-tidy.

```bash
brew install pre-commit
brew install llvm
pre-commit install
pre-commit run --all-files
```

After running the installation. The hooks will run every commit.

List of resources can be found below:
https://pre-commit.com/
https://clang.llvm.org/extra/clang-tidy/
https://clang.llvm.org/docs/HowToSetupToolingForLLVM.html
https://github.com/pocc/pre-commit-hooks
https://www.kdab.com/clang-tidy-part-1-modernize-source-code-using-c11c14/
https://stackoverflow.com/questions/47255526/how-to-build-the-latest-clang-tidy
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ cd BMS_SW_G5
git submodule --init --recursive --remote
```


# Build

Start by building the `WLoopCan` submodule and then the BMS files
Expand Down