dotnet / format

Home for the dotnet-format command
MIT License
1.91k stars 172 forks source link

Issue: Limited Scope for Running the Tool on Changed Files in Pull Requests #2105

Open MatejChabada opened 4 months ago

MatejChabada commented 4 months ago

The current version of the tool is impressive and has proven to be useful. However, it lacks the ability to run exclusively on the files that have been modified in a pull request. This feature is crucial for legacy projects, as they tend to generate numerous errors when the tool is applied globally.

I believe this enhancement would greatly improve the usability and effectiveness of the tool, especially for those working on older projects.

JoeRobich commented 4 months ago

This would be difficult to build into dotnet-format itself as there are many source control and CI systems. There are solutions out there depending on your source control/CI combination. For instance if you are using git with GitHub there is a dotnet-format action that has an only-changed-files option.