Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Log formatting change details when in dry-run mode - #249

#249
Merged
JoeRobich merged 5 commits into
masterdotnet/format:masterfrom
dev/jorobich/log-format-locationsdotnet/format:dev/jorobich/log-format-locationsCopy head branch name to clipboard
Jul 13, 2019
Merged

Log formatting change details when in dry-run mode#249
JoeRobich merged 5 commits into
masterdotnet/format:masterfrom
dev/jorobich/log-format-locationsdotnet/format:dev/jorobich/log-format-locationsCopy head branch name to clipboard

Conversation

@JoeRobich

Copy link
Copy Markdown
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
Copy Markdown
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
Comment thread src/Formatters/FinalNewlineFormatter.cs Outdated
@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

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.