Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code style rule for trailing commas in supported scenarios #76728

Open
just-ero opened this issue Jan 13, 2025 · 1 comment
Open

Add code style rule for trailing commas in supported scenarios #76728

just-ero opened this issue Jan 13, 2025 · 1 comment
Labels
Area-IDE Feature Request untriaged Issues and PRs which have not yet been triaged by a lead

Comments

@just-ero
Copy link

Brief Description

A code style rule which suggests addition or removal of trailing commas in supported scenarios.

Code Sample

enum E
{
  A,
  B // Add trailing comma in enum declaration
}
return i switch
{
  0 => "",
  _ => "", // Remove trailing comma in switch expression
};
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Issues and PRs which have not yet been triaged by a lead label Jan 13, 2025
@Youssef1313
Copy link
Member

Duplicate of #21784

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Feature Request untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

No branches or pull requests

2 participants