csharpier icon indicating copy to clipboard operation
csharpier copied to clipboard

CSharpier is an opinionated code formatter for c#.

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

## Situation I'm trying to implement the [ignore formatting documentation](https://csharpier.com/docs/Ignore) for the following code: ```csharp [HttpDelete("{id:int:min(1)}/something")] [ProducesResponseType(StatusCodes.Status204NoContent)] [SwaggerResponse(StatusCodes.Status400BadRequest, typeof(ProblemDetails), Description = "Will be returned validation fails in this API")] [SwaggerResponse(StatusCodes.Status400BadRequest,...

type:enhancement

The initial version of sorting usings (#661) did not retain existing empty lines. If we try to retain existing empty lines then 1. What happens when usings are moved? 2....

This is related to #667 but, I think, more narrow in scope. We use xml documentation comments in code but have not been able to find a way to standardize...

type:enhancement

```c# public int Thinige1 { protected internal get; protected internal set; } public int Thinige2 { protected get; protected set; } public int Thinige3 { get; set; } // this...

area:formatting
status:needs discussion

```csharp private bool ShouldNotBeDescribedKind(ITypeDefinition typeDefinition) => typeDefinition.Kind switch { TypeKind.Class => (_configuration.Kinds & DescribeKind.Class) != DescribeKind.Class, TypeKind.Interface => (_configuration.Kinds & DescribeKind.Interface) != DescribeKind.Interface, TypeKind.Struct => (_configuration.Kinds & DescribeKind.Struct) != DescribeKind.Struct,...

type:enhancement
area:formatting

The rules under [C# Formatting Options](https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/csharp-formatting-options) appear to all be unnecessary when using CSharpier and can cause conflicts. The rules under [.NET Formatting Options](https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/dotnet-formatting-options) could still be useful. It would...

This is CSharpier 0.20.0: ```csharp class X { private int? aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa; private int? bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb; private int? ccccccccccccccccccccccccccccccccccc; static void null_coalescing_arithmetic() { var x = new X(); var result1 = x.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

area:formatting
priority:medium

Using the latest 0.26.7 that reverted https://github.com/belav/csharpier/issues/1010, there are some inconsistencies in the intentation when it starts with multiple fields **Input:** ```csharp var result = myContext.MyDbSet.Where(x => x.IsOK).Select(x => x.Property).ToList();...