File tree Expand file tree Collapse file tree 3 files changed +37
-0
lines changed
Expand file tree Collapse file tree 3 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ BasedOnStyle : Microsoft
3+ AllowAllArgumentsOnNextLine : ' false'
4+ AllowAllParametersOfDeclarationOnNextLine : ' false'
5+ BinPackArguments : ' false'
6+ BinPackParameters : ' false'
7+ ColumnLimit : ' 102'
8+ ExperimentalAutoDetectBinPacking : ' false'
9+ IndentWidth : ' 2'
10+ Language : Cpp
11+ # Force pointers to the type for C++.
12+ DerivePointerAlignment : ' true'
13+ PointerAlignment : Right
14+
15+ ...
Original file line number Diff line number Diff line change 1+ repos :
2+ - repo : https://github.com/pre-commit/pre-commit-hooks
3+ rev : v6.0.0
4+ hooks :
5+ - id : check-yaml
6+ - id : end-of-file-fixer
7+ - id : trailing-whitespace
8+ - repo : https://github.com/pre-commit/mirrors-clang-format
9+ rev : v21.1.2
10+ hooks :
11+ - id : clang-format
12+ types_or : [c++, c]
13+ exclude : lib/
Original file line number Diff line number Diff line change @@ -530,6 +530,15 @@ curl http://your-server/api/clearstorage
530530- Build frontend using ` Docker `
531531 - From the root of the repo, run ` docker compose run node `
532532
533+ - Please use the provided pre-commit hooks
534+
535+ - Install [ pre-commit] ( https://pre-commit.com/ )
536+ - Activate the hooks by running
537+
538+ ``` bash
539+ pre-commit install
540+ ```
541+
533542# Plugin Development
534543
5355441 . Start by creating a new C++ file for your plugin. For example, let's call it plugins/MyPlugin.(cpp/h).
You can’t perform that action at this time.
0 commit comments