Although we already require execution of dotnet format as one of the steps to successful contribution we do not verify that contributors have actually executed the formatting command before submitting to the repository. As a result, effective automation was prevented, as those using the dotnet format would see changes to files that were not touched by themselves during implementation.
Therefore, this PR adds dotnet format check directly to the pipeline and formats any files that have not been formatted so far.
Checklist
[x] Code follows coding conventions held in this repo
[x] Automated tests have been added
[x] Tests are passing
[x] Docs have been updated (if applicable)
How to test
If manual testing is required, what are the steps?
Motivation
Although we already require execution of dotnet format as one of the steps to successful contribution we do not verify that contributors have actually executed the formatting command before submitting to the repository. As a result, effective automation was prevented, as those using the dotnet format would see changes to files that were not touched by themselves during implementation.
Therefore, this PR adds dotnet format check directly to the pipeline and formats any files that have not been formatted so far.
Checklist
How to test
If manual testing is required, what are the steps?