mapperly icon indicating copy to clipboard operation
mapperly copied to clipboard

feat: Added MapperIgnoreMemberAttribute

Open jjr2000 opened this issue 2 years ago • 1 comments

Added MapperIgnoreMemberAttribute

Description

Added MapperIgnoreMemberAttribute to allow mapping to be ignored from within a source/target class. This is a small feature as it is meerly a rehashing of the ObsoleteAttribute implementation when it is set to Both, without the configuration due to being explicitly specified.

This will reduce require attribution in bi-directional mappings where you want to explicitly exclude a member from all mappings.

I believe I have updated all required code and tests. I however have not updated to documentation as I am not quite sure where the best place would be for it.

Closes https://github.com/riok/mapperly/issues/585

Checklist

  • [x] The existing code style is followed
  • [x] The commit message follows our guidelines
  • [x] Performed a self-review of my code
  • [x] Hard-to-understand areas of my code are commented
  • [ ] The documentation is updated (as applicable)
  • [x] Unit tests are added/updated
  • [x] Integration tests are added/updated (as applicable, especially if feature/bug depends on roslyn or framework version in use)

jjr2000 avatar Mar 01 '24 16:03 jjr2000

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 91.33%. Comparing base (d303198) to head (bb6174e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1143      +/-   ##
==========================================
+ Coverage   91.31%   91.33%   +0.01%     
==========================================
  Files         230      230              
  Lines        7788     7802      +14     
  Branches      987      989       +2     
==========================================
+ Hits         7112     7126      +14     
  Misses        441      441              
  Partials      235      235              

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Mar 03 '24 01:03 codecov[bot]

Requested changes have now been incorporated and the docs have been updates.

jjr2000 avatar Mar 07 '24 18:03 jjr2000

:tada: This PR is included in version 3.5.0-next.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Mar 11 '24 13:03 github-actions[bot]