1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 23:52:50 -05:00

Add git hook for formating (#2224)

This commit is contained in:
Oscar Hinton
2022-09-08 10:27:17 +02:00
committed by GitHub
parent 5ecf7b9440
commit b612426782
2 changed files with 12 additions and 8 deletions

View File

@ -75,15 +75,11 @@ No grant of any rights in the trademarks, service marks, or logos of Bitwarden i
### Dotnet-format
We recently migrated to using dotnet-format as code formatter. All previous branches will need to updated to avoid large merge conflicts using the following steps:
Consider installing our git pre-commit hook for automatic formatting.
1. Check out your local Branch
2. Run `git merge 61dc65aa598b1f492d2f0222bb7bf0dd15d116f5`
3. Resolve any merge conflicts, commit.
4. Run `dotnet tool run dotnet-format`
5. Commit
6. Run `git merge -Xours 23b0a1f9df25058ab29785ecad9a233113c10889`
7. Push
```bash
git config --local core.hooksPath .git-hooks
```
### File Scoped Namespaces