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

Mark generated code as generated code #57

Closed
ahordijk opened this issue Mar 7, 2022 · 2 comments · Fixed by #121
Closed

Mark generated code as generated code #57

ahordijk opened this issue Mar 7, 2022 · 2 comments · Fixed by #121

Comments

@ahordijk
Copy link

ahordijk commented Mar 7, 2022

To prevent code analysis warnings and errors.
Please add [System.CodeDom.Compiler.GeneratedCode(null, null)] to all generated code, with appropriated tool and version number.

@SteveDunn
Copy link
Contributor

I added something similar to Vogen recently: SteveDunn/Vogen#126

@andrewlock
Copy link
Owner

Done as part of the refactor in #117. Note that this marks the whole type as generated, even though it might not all be (because you might manually add additional implementation). It's probably ok though IMO, hence implementing it 😄

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.

3 participants