Generated code is not marked with GeneratedCodeAttribute #1467
Closed
albanur
started this conversation in
New Feature Discussions
Replies: 2 comments 2 replies
-
Thanks @albanur. Would you like to submit a Pull Request? |
Beta Was this translation helpful? Give feedback.
2 replies
-
PRs merged. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The code generated by CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator is not marked with GeneratedCodeAttribute. Generated code is not clearly marked as generated code and can be treated like a code written manually by developers. For example this causes problem with code coverage tools/frameworks, which shows generated code in reports as a code not covered with unit tests.
Another solution is to mark generated code with ExcludeFromCodeCoverageAttribute, however the first option is more precise.
Beta Was this translation helpful? Give feedback.
All reactions