Option to add debug comments - #226
Merged
Merged
Conversation
jmattheis
reviewed
Jul 19, 2026
| fieldMapping := ctx.Field(target, targetField.Name()) | ||
|
|
||
| if fieldMapping.Ignore { | ||
| if ctx.Conf.DebugComments { |
Owner
There was a problem hiding this comment.
Thanks for the PR, I've made some changes.
- Renamed the setting to
annotate:unmapped - add comment for unexported ignored fields
- add docs + tests
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #226 +/- ##
==========================================
+ Coverage 95.95% 95.96% +0.01%
==========================================
Files 50 50
Lines 2743 2754 +11
==========================================
+ Hits 2632 2643 +11
Misses 80 80
Partials 31 31 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
jmattheis
approved these changes
Jul 19, 2026
jmattheis
force-pushed
the
debug-comments
branch
from
July 19, 2026 17:32
32a23fb to
f0c03d2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In some cases we ignore so many fields, it is hard to keep track of what effectivelly was ignored.
This MR adds an options
debug:comments [yes | no]which adds comments for each field ignored / skipped.