Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add [GeneratedCode] and [ExcludeFromCodeCoverage] Attributes to SourceGenerators #251

Conversation

brminnick
Copy link
Collaborator

Description of Change

This PR adds the following attributes to TextColorToGenerator:

[global::System.CodeDom.Compiler.GeneratedCode("{{className}}", "{{assemblyVersion}}")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]

Linked Issues

PR Checklist

  • Has a linked Issue, and the Issue has been approved(bug) or Championed (feature/proposal)
  • Has tests (if omitted, state reason in description)
  • Has samples (if omitted, state reason in description)
  • Rebased on top of main at time of PR
  • Changes adhere to coding standard

Additional information

The GeneratedCodeAttribute class can be used by code analysis tools to identify computer-generated code, and to provide an analysis based on the tool and the version of the tool that generated the code.

@brminnick brminnick requested a review from pictos October 22, 2023 12:15
@brminnick brminnick enabled auto-merge (squash) October 22, 2023 12:15
@brminnick brminnick merged commit 93b1411 into main Oct 22, 2023
6 checks passed
@brminnick brminnick deleted the Add-`-GeneratedCode]`-and-`-ExcludeFromCodeCoverage]`-Attributes-to-SourceGenerators branch October 22, 2023 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants