You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using an arrow property or an arrow method, the => token must be on the same line as the declaration. Regarding the expression body:
for properties: it should be on the same line as the property declaration. It should be on the following line only when it is too long and would trigger S103.
private int name = "Lorem"; // Compliant
private int values[] = // Compliant
[
];
public List<int> list =
new() // Noncompliant
{
}
public List<int> list = new() // Compliant
{
}
private int name =
"Ipsum"; // Noncompliant
The text was updated successfully, but these errors were encountered:
Coding style:
Inferred from properties:
The text was updated successfully, but these errors were encountered: