csharpier
csharpier copied to clipboard
CSharpier is an opinionated code formatter for c#.
Hi! :wave: Thanks for making this. I was so surprised when I started playing around with Unity again that there wasn't an opinionated formatter like prettier for C# that would...
There is currently no way to know which files csharpier formatted. For cases like #631 it would be useful to know which files were included. Some ideas 1. `--list-formatted` could...
```c# internal static Dictionary< string, OpenIdConnectAuthenticationOptions > OpenIdConnectAuthenticationOptions = new Dictionary(); ``` Would probably be better as ```c# internal static Dictionary OpenIdConnectAuthenticationOptions = new Dictionary(); ```
```c# FacebookGroupConnection statuses = await GetFacebookObjectAsync< FacebookGroupConnection >(client, "me/statuses"); // should maybe be FacebookGroupConnection statuses = await GetFacebookObjectAsync( client, "me/statuses" ); // this is just gross, it used to break...
If you format this file https://raw.githubusercontent.com/belav/csharpier-repos/master/aspnetcore/src/Http/Routing/src/Matching/ILEmitTrieFactory.cs with the playground it displays the compilation error in the wrong spot  If you remove the `#if` then it reports just fine.
Some changes were made recently that affected some instances of verbatim strings. See the StringLiteral/VerbatimStrings.cst file for some of the examples. There are probably a number of other edge cases....
CSharpier is mature enough that we no longer need to validate every time code is formatted. - Deprecate the --fast option. By default csharpier will not validate the changes. -...
NativeAOT may be a solution to the problem of csharpier being slow to format a single file. It will be in .net7 https://github.com/dotnet/runtime/issues/61231 It is currently experimental, and I believe...
The code below returns null for encoding on a few files. It does this even after they are written out with UTF8 ```c# var detectionResult = CharsetDetector.DetectFromFile(file); var encoding =...
All the IDE extensions keep csharpier running, but they do not detect when csharpier was updated in the solution or globally. There are a few options 1. Detect when csharpier...