You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Dmitriy Khaustov d117c3c76e
Refactor: format, include-guards, copyrights, git-hooks (#222)
1 year ago
..
README.md Refactor: format, include-guards, copyrights, git-hooks (#222) 1 year ago
activate_hooks.sh Refactor: format, include-guards, copyrights, git-hooks (#222) 1 year ago
pre-commit Refactor: format, include-guards, copyrights, git-hooks (#222) 1 year ago

README.md

Git Hooks

This folder might contain some git-hooks to execute various checkup in Kagome.

To activate presented (and all future) hooks just execute once shell-script activate_hooks.sh from Kagome project root path.

pre-commit

This hook check existing clang-format and cmake-format and their versions. If they have recommended version, specific checkup is enabled.

Each changed C++ file (.hpp and .cpp extensions) gets processed by clang-format.

Each changed CMake file (CMakeLists.txt and .cmake extension) gets processed by cmake-format

Commit will be blocked while there are any differences between original files and clang-format/cmake-format output files.

etc.

Other hooks might be provided by maintainers in the future.