Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use consistent line endings on all platforms #112

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lhns
Copy link
Contributor

@lhns lhns commented Jan 8, 2025

Should we add a test for this? I have removed the "-w" option on diff but I think it would be better to leave that in because git crlf could be configured differently for different users making it harder for them to run the tests.
Sadly the PrettyPrinter in CycloneDX is hardcoded and always uses the systems default line endings.
Fixes #76

@raboof
Copy link
Contributor

raboof commented Jan 8, 2025

Should we add a test for this? I have removed the "-w" option on diff but I think it would be better to leave that in because git crlf could be configured differently for different users making it harder for them to run the tests.

Good point. I agree making things easy across git crlf settings makes sense. Then we can have a dedicated test that checks for line endings (perhaps just searching for crlf strings in the output, ignoring the 'real' contents?)

Sadly the PrettyPrinter in CycloneDX is hardcoded and always uses the systems default line endings.

Maybe add an issue for this upstream?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent whitespace on Windows
2 participants