codeformatter icon indicating copy to clipboard operation
codeformatter copied to clipboard

Tool that uses Roslyn to automatically rewrite the source to follow our coding styles

Results 93 codeformatter issues
Sort by recently updated
recently updated
newest added

- 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.

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:...

enhancement
guideline gap

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...

bug

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...