dotnet / dotnet/format

"Fix whitespace formatting." is not very useful. Please add an option to show a diff of the formatting rule violation.

Open
#789 4 comments 3 reactions 0 assignees View on GitHub
Feature Request
Dominant language
No language data
Stars
1.9k
Forks
173
Avg merge
10d 13h
Merged PRs (30d)
1

Description

I have enabled `dotnet-format --check` on our build server, but it fails hard. This is not the case locally, where it runs successfully.

For reference see https://ci.appveyor.com/project/icsharpcode/ilspy/builds/34921427/job/f80qltt0knx4dwka

I use the `--verbosity diagnostic` setting, but the error message "Fix whitespace formatting." is not very useful. How do other people using dotnet-format debug formatting issues on their CI system?

Would it be possible to add a diff of the change that was performed by the formatter? Could also be a new option `--verbosity show-diff` or similar.

Thank you very much!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.