dotnet / dotnet/format

Bad formatting of lambda with attribute

Open
#1,548 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
1.9k
Forks
173
Avg merge
10d 13h
Merged PRs (30d)
1

Description

C# 10 allows lambda expressions to have attributes. dotnet-format seems to force the lambda to be unindented when putting a lambda attribute on a separate line:

Before:
```csharp
var l =
[MyAttr]
() => 0;
```

After running `dotnet-format`:
```csharp
var l =
[MyAttr]
() => 0;
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.