I'm working on a project in which the majority of the code is generated. I'm fully aware of what a useless metric SLOC is, but I'd like to brag about how much work and potential human error the code generators are saving as a KPI to dazzle the PHBs.
How can I count generated SLOC? VS Code Metrics doesn't seem to distinguish between hand-written code and code generated by an IIncrementalGenerator
. Actually, I'm not entirely sure it's counting the generated lines at all. The generated code can't go in a separate project because many of the generated files are partial
classes with a few bits hand-written.