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
trafficstars

``` namespace A { using System; } namespace B { using System; } ``` results in ``` using System; using System; namespace A { } namespace B { } ```...

bug

``` public class CryptoStream { private byte[] _InputBuffer; } ``` `_InputBuffer` did not get rewritten to `_inputBuffer`.

In the event it is required for disambiguation or invoking an extension method it certainly should remain, but the [Coding style guidelines](https://github.com/dotnet/corefx/wiki/Coding-style) say "4. We avoid this. unless absolutely necessary.",...

Many of the files not yet moved from closed source to open in corefx have "using global::System;". Aside from "using System" being usually redundant due to the contained namespace chain,...

I haven't verified with a minimal repro, but based on cases where this has been seen it seems like ``` public bool SimpleProperty { [Pure] get { return false; }...

``` class Outer1 { class Inner { private object _couldBeReadonly; } } class Outer2 { class Inner { private object _couldBeReadonly; } } ``` This will only mark Outer1+Inner._couldBeReadonly as...

Constant fields, eg: private const int _ShrinkThreshold = 256; should be PascalCase.

In CoreFx, we have the guideline of always using the C# alias of the built-in types. It would be nice if the formatter had an option to automatically replace occurrences...

Hi guys, I'd love to see VB.NET styling added here, we have a lot of projects in VB (unfortunatly) . Thanks :-)

enhancement

Running the CodeFormatter on the project containing this file fails to correctly rename the m_postPhaseAction field. Two usages of the field are left unchanged (leading 'm' still intact). Opening VS...