Skip to content

Conversation

@JoeRobich
Copy link
Member

Provides the necessary information for #247. Since the Roslyn whitespace formatter fixes all whitespace formatting options in one operation there are not per-rule messages for whitespace changes.

Sample output:

~\source\repos\format [dev/jorobich/log-format-locations ≡ +0 ~8 -0 !]> dotnet format --dry-run
  Warnings were encountered while loading the workspace. Set the verbosity option to the 'diagnostic' level to log warnings.
  src\Formatters\DocumentFormatter.cs(30,9): Fix whitespace formatting.
  Formatted code file 'DocumentFormatter.cs'.
  Format complete in 5337ms.

Fixes #90

@JoeRobich
Copy link
Member Author

@jmarolf PTAL

@JoeRobich JoeRobich force-pushed the dev/jorobich/log-format-locations branch from b3e1329 to b7d4e66 Compare July 12, 2019 03:25
@JoeRobich JoeRobich force-pushed the dev/jorobich/log-format-locations branch from b7d4e66 to 2f0bd58 Compare July 12, 2019 03:44
@jmarolf jmarolf self-requested a review July 12, 2019 22:44
@JoeRobich JoeRobich force-pushed the dev/jorobich/log-format-locations branch from 9e50060 to 60540e1 Compare July 13, 2019 00:14
@JoeRobich JoeRobich merged commit 52c1f95 into master Jul 13, 2019
JoeRobich added a commit to JoeRobich/format that referenced this pull request Jul 13, 2019
* Log format locations

* Use workspace path for relative filenames

* Log format change details only when in dry-run mode

* Fix FormatLocations test to work x-plat

* Localize formatter warning descriptions
@jmarolf jmarolf deleted the dev/jorobich/log-format-locations branch July 22, 2019 20:53
@jmarolf jmarolf restored the dev/jorobich/log-format-locations branch July 22, 2019 20:53
@jmarolf jmarolf deleted the dev/jorobich/log-format-locations branch July 28, 2019 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Detailed logging to include line number and code violation details

3 participants