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

EOL CRLF vs LF #39

Closed
kohlmu-pivotal opened this issue Oct 24, 2016 · 1 comment
Closed

EOL CRLF vs LF #39

kohlmu-pivotal opened this issue Oct 24, 2016 · 1 comment
Labels

Comments

@kohlmu-pivotal
Copy link

Is there a way that we can force spotless to use LF eol for both windows and unix?

@nedtwigg
Copy link
Member

Yup, take a look towards the bottom of this section of the README.

By default, Spotless copies git's behavior. If you're using git, I highly recommend that you use a .gitattributes file to change the line ending. Otherwise Spotless and git will fight each other.

Here's a .gitattributes file which will change all line endings to LF.

* text eol=lf

Levertion added a commit to Levertion/vscode-gradle that referenced this issue Jun 18, 2020
dwalluck added a commit to dwalluck/gradle-manipulator that referenced this issue Oct 7, 2020
KengoTODA added a commit to spotbugs/spotbugs that referenced this issue Dec 6, 2021
* chore: specify the eol setting to stabilize spotless result

refs diffplug/spotless#39 (comment)

* chore: replace CRLF with LF

* build: stabilize the build even with old JVM

* test: reproduce the reported problem with unit test

* fix: report without extra option cannot be created

* chore: apply spotless
punya added a commit to punya/javaagent-gradle-plugin that referenced this issue Jul 19, 2023
ryandens pushed a commit to ryandens/javaagent-gradle-plugin that referenced this issue Nov 1, 2023
jlerbsc added a commit to jlerbsc/javaparser that referenced this issue Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants