#Contributing
Fork, then clone the repo:
git clone [email protected]:<your-username>/circ.git
Install the dependencies:
cmake
make
- a C compiler
libunistring-dev
libev-dev
gnutls-dev
Install the development dependencies (this is important!):
clang
(forclang-format
,clang-tidy
)
Install the Git Hooks
Symlink .githooks
to .git/hooks
.
Push to your fork, then submit a pull request
- Please get rid of any warnings
clang-format
andclang-tidy
spew. - Put a space before parens.
- Use snake case.
- Don't code like a rockstar.
See editor configuration for integrating with the above.
If you use Vim
+ ALE
, you can set it up to lint source files with:
let g:ale_fixers = { }
let g:ale_fixers['c'] = ['clang-format']
let g:ale_linters = { }
let g:ale_linters['c'] = ['clangtidy']
Reformat source files with clang-format
with ALEFix
.
Please ensure you have the development dependencies installed.