codeformatter
codeformatter copied to clipboard
Tool that uses Roslyn to automatically rewrite the source to follow our coding styles
Is there a way to do this with .net compiler platform? For ex, one of the project files in corefx: ``` ``` Is there a way to format all files...
Downloaded the binary release and when I tried running it complained about missing dlls which seem to belong to vs 2015. Is it correct to say that CodeFormatter tool requires...
> 11.We use language keywords instead of BCL types (i.e. int, string, float instead of Int32, String, Single , etc) for both type references as well as method calls (i.e....
Currently no `Microsoft.VisualStudio.TestTools.UnitTesting.StringAssert` assertion is converted to `Xunit.Assert`. I prepared some tests in my [fork](https://github.com/patricksadowski/codeformatter/commits/stringassert).
It would be nice if CodeFormatter automatically trimmed trailing spaces in line-comment trivia as well as in code. I naively assumed it already did until I looked at https://github.com/Microsoft/msbuild/pull/289. I...
Is this expected behavior? Before: ``` csharp private static HashSet Foo { get; } = new HashSet(StringComparer.Ordinal) { "item1", "item2" }; ``` After: ``` csharp private static HashSet Foo {...
Here is the exception: [MarkReadonlyFieldsRule exception.txt](https://github.com/dotnet/codeformatter/files/17196/MarkReadonlyFieldsRule.exception.txt) @michaelcfanning, @srivatsn FYI, the first of the class of failures we discussed.
I tried running CodeFormatter on all individual csproj files within the System.Net\* folders instead of the SLNs and found a lot more code style changes. Potentially related: - Visual Studio...
Please see https://github.com/dotnet/corefx/pull/3113 for issues encountered when running CodeFormatter on System.Net.Security.sln: 1. If statements should always use {} ``` C# if (!_stream.CanRead) throw __Error.GetReadNotSupported(); // should be if (!_stream.CanRead) {...