Skip to content

Generated files missing <auto-generated/> header #75

Description

@YVbakker

File: src/OpenApiSourceGenerator/Processors/SchemaProcessor.cs (GenerateCompilationUnit in ClassGenerator.cs)

Generated .g.cs files have no // <auto-generated/> comment header. This is a standard convention that suppresses analyzer/style-cop warnings and code-coverage instrumentation on generated code, and signals to IDEs/tooling not to hand-edit the file.

Suggested fix: Prepend a standard // <auto-generated/> header (and consider #nullable enable if nullable annotations are added per issues #71 ) when building the CompilationUnitSyntax.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions