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

RCS1055 for empty enums #1359

Closed
jnyrup opened this issue Jan 14, 2024 · 0 comments · Fixed by #1361
Closed

RCS1055 for empty enums #1359

jnyrup opened this issue Jan 14, 2024 · 0 comments · Fixed by #1361

Comments

@jnyrup
Copy link
Contributor

jnyrup commented Jan 14, 2024

Product and Version Used:
Using newest v4.9.0 RCS1055 is triggered on enums.
It does not trigger on class, struct or interface, which looks related to #1134.

Steps to Reproduce:

root = true

[*.cs]
dotnet_diagnostic.RCS1055.severity = error
class Class;

enum Enum; // <-- RCS1055

interface IInterface;

struct Struct;

Actual Behavior:
RCS1055 is reported.

Expected Behavior:
RCS1055 should not be reported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants