csharpier icon indicating copy to clipboard operation
csharpier copied to clipboard

CSharpier is an opinionated code formatter for c#.

Results 331 csharpier issues
Sort by recently updated
recently updated
newest added

**Input:** ```cs public static int GetMetaCodesLimit(SearchRepositoryRequest request) => request switch { _ when request.SearchCriteria.ContextConfiguration.IsFeatureEnabled( FeatureFlags.UseDynamicSearchFallbackInPackagesApi ) => MAX_METACODES_COUNT_FOR_INV_DYNAMIC_SEARCH, _ when request.SearchCriteria.Filters.HasPriceFiltering() => MAX_METACODES_COUNT_FOR_PRICE_FILTER, _ when request.SortingConfiguration.Sorting.SortBy is Portfolio.Common.Models.SortBy.TotalPrice => MAX_METACODES_COUNT_FOR_TOTAL_PRICE_SORTING,...

Print width 120 (you can paste the example to https://playground.csharpier.com/) **Input:** ```cs public class ClassName { public static int Run() { await Assert.ThrowsAsync(async () => await writer.FlushAsync(TestContext.Current.CancellationToken)); } } ```...

The fixes in #1611 introduced a formatting issue. Getting things to work properly will involve a conditional group. The edge case to fix ```c# class ClassName { private SomeObject someObject...

Also rework it, there is kind of a lot going on.

**Input:** ```csharp using System; using Microsoft.Extensions.Logging; using System.IO; using System.Text; using MyCompany.Project; using MyCompany.Utilities; using Newtonsoft.Json; ``` **Output:** ```csharp using System; using System.IO; using System.Text; using Microsoft.Extensions.Logging; using MyCompany.Project; using...

I noticed that my work repo performs significantly worse for formatting files on 0.30.6 than it does on 0.28.0. There is probably another cause of performance issues besides the changes...

For my work repo there are only 1,000 xml files. It takes 50s to format them when the caching is skipped.

A newer version of Rosyln added some warnings that should probably be addressed. RS1035 and RS1042

Currently xml attributes are encoded when run through CSharpier, which results in them being less readable. Input ```xml ``` Output ```xml ``` This happens automatically with `XAttribute` but the code...

**Environments** - IDE Version: JetBrains Rider 2024.2.7 - Extension Version: > 1.8.4 - CSharpier Version: 0.30.6 *will NOT be the same as the extension version* - Operating System: Windows -...

Stale