Skip to content
This repository was archived by the owner on Jul 12, 2022. It is now read-only.

Conversation

@jaredpar
Copy link
Member

This changes the behavior of the formatter to not define
DOTNET_FORMATTER by default. It can be opted into by using the /tables
option.

The reason for this change is to avoid a bug in Roslyn around changing
and resetting the parser options. When hit Roslyn will end up changing
all files in the solution to have a different encoding / line ending.

I haven't yet tracked down this bug but short term making this opt-in
behavior so users aren't adversely affected by it.

This changes the behavior of the formatter to not define
DOTNET_FORMATTER by default.  It can be opted into by using the /tables
option.

The reason for this change is to avoid a bug in Roslyn around changing
and resetting the parser options.  When hit Roslyn will end up changing
all files in the solution to have a different encoding / line ending.

I haven't yet tracked down this bug but short term making this opt-in
behavior so users aren't adversely affected by it.
The unit tests which depend on table formatting need to enable that
feature before running.
The command line parsing code didn't reflect the current state of the
tool.  The <rule types> switch for instance was only used to add in the
xUnit conversion rules which are no longer a part of the code style
tool.   This and some other dead code was removed and it now reflects
the real feature set of the tool.
There really isn't a reason to print out the times for every file in a
default run.
jaredpar added a commit that referenced this pull request Feb 27, 2015
Disable table formatting by default
@jaredpar jaredpar merged commit 67488a7 into dotnet:master Feb 27, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants