Skip to content

Exclude C# auto-generated files #229

@ghost

Description

Describe the bug
In C#/.NET Projects auto-generated files are marked on top of a file with a comment:

// <auto-generated />

This is especially the case if you use the OR-Mapper Entity Framework where a lot of this auto-generated files are created in larger projects (due to database-Migration files) resulting in a unrealistic LOC result (e.g. in one project >50% of the "total" LOC are actually auto-generated).
Files cannot be simply git-ignored because these files are necessary.

To Reproduce

  1. Run scc on a folder containing a C# sharp file with the <auto-generated /> comment
  2. Result also counts these files in

Expected behavior
C# Files with the <auto-generated /> header shouldn't be counted. Similar to the lock-files issue #206 but with C# files.

Desktop (please complete the following information):

  • OS: Windows 10
  • scc version 2.13.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions