dotnet / dotnet/aspnetcore

Add git pre-commit hooks for applying formatting to source

Open
#27,632 1 comment 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.