code-annotation
code-annotation copied to clipboard
Make diffs to ignore whitespace changes
As discussed \w @vmarkovtsev - it would be desirable for ML team to see equivalent of git-diff -w while annotating.
I wonder if this could be considered when solving https://github.com/src-d/code-annotation/issues/176
Quick note for future reference. This is not completely supported by the lib we use, but the pieces are there. We could fork or PR https://github.com/pmezard/go-difflib to:
- Add
isJunk func(string) boolandautoJunk booloptions toUnifiedDiff struct - Create a new
NewMatcherWithJunkwhen those options are present here.