Autogenerated tag on autogenerated cs files

105 views
Skip to first unread message

Celine Vancoppenolle

unread,
Sep 9, 2020, 2:19:19 AM9/9/20
to grpc.io
Is there a way to add an auto generated tag in the cs files that are generated?

I currently have problems with the rule SA1518: File is required to end with a single newline character

I think the StyleCop Analyzers are ignoring files with those autogenerated tags automatically.

Or is there an other way to work around this?

I tried ignoring it, but then the cs files that need this rule are also ignored.

It looks that the generated file is empty too. Maybe that's the issue. 

I created the same question on github: https://github.com/grpc/grpc-dotnet/issues/1043 and they said I should ask it here. 

Thanks!

Jan Tattermusch

unread,
Oct 6, 2020, 9:18:20 AM10/6/20
to grpc.io
File a feature request in https://github.com/grpc/grpc if this is still causing problems (but it seems that your question was sufficiently answered in https://github.com/grpc/grpc-dotnet/issues/1043 already).

Celine

unread,
Oct 13, 2020, 2:22:34 AM10/13/20
to grpc.io
Thanks for your answer. I will try there. We solved it for now. We made the SA1518 rule a warning instead of an error. 
Reply all
Reply to author
Forward
0 new messages