Add c++ contribution guide
This commit is contained in:
parent
83f9b57b56
commit
da8572d76f
3593
AfRApay.MateCard/.uncrustify.cfg
Normal file
3593
AfRApay.MateCard/.uncrustify.cfg
Normal file
File diff suppressed because it is too large
Load diff
10
AfRApay.MateCard/README.md
Normal file
10
AfRApay.MateCard/README.md
Normal file
|
@ -0,0 +1,10 @@
|
|||
# AfRApay.MateCard
|
||||
This is the software that runs on the MateCard terminal, powered by an ESP32.
|
||||
|
||||
## Setting up dev environment
|
||||
This project uses PlatformIO. Quick setup guide:
|
||||
- Install PlatformIO (macOS: `brew install platformio` / Arch Linux: `yay -S platformio` / Other: [platformio.org](https://platformio.org/install/cli))
|
||||
- To compile, run `pio run`
|
||||
- To compile and upload, run `pio run -t upload`
|
||||
- To run clang-tidy, run `pio check`.
|
||||
- Please run `uncrustify --no-backup -c .uncrustify.cfg src/*.cpp include/*.h` before commiting. To install it as a pre-commit hook, run `ln -s ../../hooks/pre-commit.hook ../.git/hooks/pre-commit` in this directory.
|
3
hooks/pre-commit.hook
Executable file
3
hooks/pre-commit.hook
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
cd AfRApay.MateCard
|
||||
uncrustify --no-backup -c .uncrustify.cfg src/*.cpp include/*.h
|
Loading…
Reference in a new issue