Add git pre-commit hooks for applying formatting to source
Open
affected-medium
area-infrastructure
enhancement
severity-nice-to-have
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 281
Description
Our repos formatting currently defaults to the formatting applied by default in VS. This can be cumbersome for users who are working in non-VS editors with the repo or users who disable format on save in their IDE.
We should consider adding a git pre-commit hook that runs `dotnet format` on modified source files in a particular change set.
Contributor guide
Assessment
This issue has not been assessed yet.