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

Analyzer to suggest using readonly struct #603

Closed
SteveDunn opened this issue May 26, 2024 · 4 comments
Closed

Analyzer to suggest using readonly struct #603

SteveDunn opened this issue May 26, 2024 · 4 comments

Comments

@SteveDunn
Copy link
Owner

It is preferable for users to use a readonly struct rather than just a struct. Implement an analyzer to suggest this, and possibly a codefix.

This was a result of the following thread.

          @SteveDunn A suggestion that came to my mind while reading this: maybe enhance the analyzers to promote the usage of `readonly struct` instead of a `struct` as an _Information_ or _Warning_ message?

Originally posted by @Herdo in #52 (comment)

@danigutsch
Copy link
Contributor

Hi @SteveDunn . I wanted to take this issue, if that's alright

@SteveDunn
Copy link
Owner Author

That would be great, thank you!

@danigutsch
Copy link
Contributor

Should record structs trigger the analyzer?

@SteveDunn
Copy link
Owner Author

SteveDunn commented Aug 18, 2024 via email

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

No branches or pull requests

2 participants