Emit an additional `ExcludeFromCodeCoverageAttribute` for generated methods
Open
Area-Debug
Feature Improvement
Theme-Simple-F#
- Dominant language
- F#
- Stars
- 4.3k
- Forks
- 876
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 131
Description
By default, we only emit `CompilerGeneratedAttribute` for generated methods (`CompareTo`, `Equals`, etc.), and since we also generate sequence points for them, VS code analysis shows them in the report:

The only user-added method in picture above is `Create(int)`.
We should be emitting an `ExcludeFromCodeCoverageAttribute` for generated methods, so they can be excluded from the report.
Contributor guide
Assessment
This issue has not been assessed yet.