mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2026-02-23 06:54:20 +01:00
feat: add pre-commit hook to repo (#94)
This commit is contained in:
9
.githooks/pre-commit
Executable file
9
.githooks/pre-commit
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# Cargo syntax checks
|
||||
dirs=("lib" "cli")
|
||||
for dir in ${dirs[@]}; do
|
||||
(cd $dir; exec cargo fmt; exec cargo clippy -- -D warnings)
|
||||
done
|
||||
5
DEVELOPMENT.md
Normal file
5
DEVELOPMENT.md
Normal file
@@ -0,0 +1,5 @@
|
||||
## Setup
|
||||
To configure automatic code formatting and syntax checking for this repository, you can run the following command once:
|
||||
```bash
|
||||
git config --local core.hooksPath .githooks/
|
||||
```
|
||||
Reference in New Issue
Block a user