-
Notifications
You must be signed in to change notification settings - Fork 510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add /apply option to write /fixall changes back to disk #2017
Conversation
Current coverage is
|
if (applyChanges) | ||
{ | ||
var applyOperations = operations.OfType<ApplyChangesOperation>().ToList(); | ||
if (applyOperations.Count > 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sharwell Do you know a case where this can happen?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not. Presumably if this message ever appears someone will report it.
👍 |
Add /apply option to write /fixall changes back to disk
Excellent! This will be really helpful. 👍 |
This update to StyleCopTester allows it to be used to automate the correction of specific style violations in a solution.
Currently only one type of diagnostic can be fixed at a time, but it would be easy to create a script that invokes the tool multiple times to cover a set of diagnostics.