codeformatter
codeformatter copied to clipboard
Tool that uses Roslyn to automatically rewrite the source to follow our coding styles
Rule to remove regions.
- using statements - static methods when possible - ...
@stephentoub has [pointed out](https://github.com/dotnet/corefx/pull/1851#discussion_r31315254) that text files should end with a newline. This PR adds a code formatting rule to do this for C# source code files.
Allow to specify a directory instead of a project/solution.
This adds two additional rules for dealing with attributes: ### Removing superfluous parentheses It's conventional to omit parentheses when the attribute doesn't take any arguments, for example: ``` CSharp [target:...
The current rule will convert `@"This is a snowman: ☃."` to: `@"This is a snowman: \u2603."`. This is wrong because we want the unicode literal in the string, not the...
A better examples would help, how to produce output files
see README link in the first paragraph > https://github.com/dotnet/corefx/blob/master/Documentation/coding-guidelines/coding-style.md
I used the converter to successfully convert our MSTest projects to xUnit, except that I noticed that `TestInitialize` and `TestCleanup` attributes were not converted, so I've added that in my...
When calling XUnitConverter on a VS 2019 project there is no console ouput and the project keeps unchanged. I debugged into the code and in ConverterBase, line 20, project.DocumentIds is...