notanaverageman / Bindables

Bindables converts your auto properties into Wpf dependency or attached properties.
MIT License
52 stars 9 forks source link

Generated code is not marked with GeneratedCodeAttribute #30

Closed albanur closed 11 months ago

albanur commented 12 months ago

This is not a real bug, but rather an improvement request.

The code generated by Bindables.Maui.MauiPropertyGenerator is not marked with GeneratedCodeAttribute. This causes problem with code coverage tools/frameworks, which shows generated code in reports as a code not covered with unit tests.

The other solution is to mark generated code with ExcludeFromCodeCoverageAttribute, however the first option is preferable.

albanur commented 12 months ago

@notanaverageman I have opener a Pull Request for adding GeneratedCodeAttribute here: https://github.com/notanaverageman/Bindables/pull/31