Thanks for your interest in contributing! This repository enforces a consistent
C# code style via .editorconfig, a pre-commit hook (opt-in), and CI checks.
- Git
- .NET SDK 10.x
- Bash (macOS/Linux: built-in; Windows: Git for Windows ships Git Bash)
Git hooks are not transferred by default when you clone a repository. This repo
keeps hooks in .githooks/ and uses core.hooksPath so they can be versioned.
Run one of the setup scripts from the repo root:
./scripts/setup-githooks.ps1bash scripts/setup-githooks.shThis sets:
git config core.hooksPath .githooks
After that, every git commit will run the formatting verification.
- One-off bypass:
git commit --no-verify- Disable the formatting hook for a command/session:
SKIP_DOTNET_FORMAT=1 git commitThe hook (and CI) run formatting in verify mode:
dotnet format whitespace ... --verify-no-changesdotnet format style ... --severity warn --verify-no-changes
To run the same checks manually:
./scripts/verify-format.ps1bash scripts/verify-format.sh --verifyTo apply fixes locally:
./scripts/verify-format.ps1 -Fixbash scripts/verify-format.sh --fixPlease ensure tests pass before submitting a PR.
dotnet test ./test/Bitbucket.Net.Tests/Bitbucket.Net.Tests.csproj