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

Spotless on Windows formats with the wrong line endings #918

Open
p-bakker opened this issue Jun 1, 2021 · 0 comments · May be fixed by #919
Open

Spotless on Windows formats with the wrong line endings #918

p-bakker opened this issue Jun 1, 2021 · 0 comments · May be fixed by #919

Comments

@p-bakker
Copy link
Collaborator

p-bakker commented Jun 1, 2021

.,/gradlew :spottlessApply looks at .gitattributes for determining the proper line endings, which is configured with * text=auto

In Windows this results in Spotless changing all line endings to CRLF, instead of leaving them on LF.

Would like to change the setup in .gitattributes to * text=auto eol=lf. With that setting, Spotless leaves the LF line endings in place

Agree?

@p-bakker p-bakker linked a pull request Jun 1, 2021 that will close this issue
@p-bakker p-bakker mentioned this issue Dec 15, 2021
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 a pull request may close this issue.

1 participant