Skip to content

Files generated and written to disc using SourceGenerators are not indexed by the scanner #1487

@csaba-sagi-sonarsource

Description

@csaba-sagi-sonarsource

If a file is generated and written to the disc with the help of SourceGenerators (Parameters: EmitCompilerGeneratedFiles and CompilerGeneratedFilesOutputPath) the scanner does not recognize them and does not index them. This means the file is not going to show up in SC/SQ.

Keep in mind that even if this issue is fixed, issues will still not be reported correctly for those files, until this issue is fixed on roslyn side.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions