csharpier
csharpier copied to clipboard
CSharpier is an opinionated code formatter for c#.
Ideally we would format the following ```c# var symbol = context.Operation switch { _ => throw new InvalidOperationException( "Unexpected operation kind: " + context.Operation.Kind ), }; // which is currently...
```c# class ClassName { void MethodName() { var result = await ProcessUtil.RunAsync( commonTestArgs + " --TestCaseFilter:\"Quarantined!=true|Quarantined=false\" ", environmentVariables: EnvironmentVariables ); } } // should be class ClassName { void MethodName()...
These are some edge cases I ran across while reviewing a couple of the forked repos. ```c# public interface IProjectionExpression : IProjectionExpressionBase where TMappingExpression : IProjectionExpressionBase< TSource, TDestination, TMappingExpression >...
``` public class ClassName { // this is 92, but if you add one more character it breaks public AutoMapperMappingException(string message, Exception innerException_____________) : this(message, innerException) => Types = types;...
There are a number of obnoxious edge cases that we should address. They were added as tests so that when formatting changes that affects them, we can see how they...
These are a couple of edge cases that we need to be sure to deal with after we finalize how we want to format classes with base lists. ```c# public...
There are a number of edge cases in VariableDeclartions.cst and one in FixedStatements.cst that are not handled yet. This is the desired formatting. ```c# var arrayCreationExpression1 = new byte[100]; var...
This is related to https://github.com/belav/csharpier/issues/100 but the solution to other nodes like IfStatementSyntax isn't easily implemented for AnonymousMethodExpressions. Adding a group around Func f5 = delegate(string exactly80, string abcd) is...
Either way that we format binary expressions (break before or break after operator) we run into cases like this. In this situation, we should really be moving the operator to...
We may want to turn the leading comment into a trailing comment on : but we haven't really moved around comments yet Also the Split method breaking is weird. it...