-
Notifications
You must be signed in to change notification settings - Fork 7
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 // <auto-generated /> to the generated files #142
Comments
I've pushed out an early nightly from the feature branch. Can you confirm that the warnings are gone? If so, I'll merge it in. |
It looks good so far. There is still one remaining warning:
It's a translation of the message Other projects seem to have a similar problem, e.g.: AArnott/CodeGeneration.Roslyn#183 |
This is an issue with injected sources. I will look through the injected sources and add the appropriate directives. |
Thanks, works now as expected! 👍 |
Is your feature request related to a problem? Please describe.
I'd like to use StyleCop.Analyzers and it shows warnings, because it's unable to recognize the file as automatically generated.
Describe the solution you'd like
It would be helpful if the automatically generated files would start with the following text:
This would cause the analysis to skip those files. You can find the unit test for skipped files in ExclusionTests.cs in the StyleCop.Analyzers project.
Describe alternatives you've considered
The only alternative I've found is to disable the warnings in the whole project, which is undesirable.
Additional context
The text was updated successfully, but these errors were encountered: