codeformatter
codeformatter copied to clipboard
Tool that uses Roslyn to automatically rewrite the source to follow our coding styles
Replaced: `private Func _callback;` But didn't replace: `if (!m_callback(targetObj))`
As enhancement, I'd find it great to make code like: `var answers = list.Where((i) => i.Answer == 42);` _(brackets around "__i__")_ or even `var answers = list.Where((i) => { i.Answer...
I know this is your default and written down in the documentation: `We use four spaces of indentation (no tabs)` but we use tabs by default in my company. However...
In `FormatDocumentFormattingRule.ProcessAsync`, in the loop over additional configurations, the `DOTNET_FORMATTER` symbol is added to the parse options regardless of the presence of the `/tables` option on the command line. @Srivatsn,...
Right now, it uses IsAssignableFrom, but according to http://xunit.github.io/docs/comparisons.html the direct conversion is IsType().
Using the /nocopyright switch produces 2 blank lines at the very top of every code file. I'd expect that it would not do this.
If you try to run codeformatter.exe on a `.cs` file then you get the surprising error message: > Unhandled Exception: System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: Cannot open...
The method `ReadonlyRewriter.VisitFieldDeclaration` looks only at the first variable declared in the field declaration: ``` private int _n = 0, _m = 1; ``` If `_n` appears in the list...
I have several C# projects that reference C++\CLI .vcxprojs Codeformatter throws exception on start: ``` Unhandled Exception: System.AggregateException: One or more errors occurred. ---> Microsoft.Build.Exceptions.InvalidProjectFileException: The imported project "{RootFolderOfSolution}Microsoft.Cpp.Default.props" was...
Getting these all over the place (and later failures finding 'Object' and other simple classes) CSC : warning CS8032: An instance of analyzer Microsoft.CodeAnalysis.CSharp.Analyzers.Fix Analyzers.CSharpFixerWithFixAllAnalyzer cannot be created from G:\code\codeformatter\src\...