pmrogala / Buildenator

A test data builders source generator for .net 5 and later.
MIT License
19 stars 1 forks source link

Generated files should be marked as auto-generated to avoid Code Analysis errors #38

Closed SteveDunn closed 2 years ago

SteveDunn commented 2 years ago

I just added a builder to my test project and ended up with hundreds of code analysis errors.

The generated code should include a header to say that it's generated. Here's an example:

// ------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen)
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
pmrogala commented 2 years ago

thanks, I'll do it this week!

pmrogala commented 2 years ago

Ok, Done it right away. Included in the 4.1.4, should appear in 15 minutes on nuget.

SteveDunn commented 2 years ago

That was quick! Many thanks