bazelbuild / bazelbuild/bazel-skylib

`diff_test` doesn't show hidden whitespace characters

Open
#591 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Starlark
Stars
444
Forks
202
PR merge metrics
No merged PRs in 30d

Description

When using `diff_test`, it can be hard to determine why two files differ if the difference is due to whitespace (e.g. `^M` at the end of lines).

Would it be possible to add more configuration to `diff_test`? For example using `cat -A` to preprocess the files and/or passing `--strip-trailing-cr` to `diff`? Being able to enable color would also be helpful, although not directly related.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.