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

Make newline configurable #35

Closed
kec2 opened this issue Oct 9, 2016 · 1 comment
Closed

Make newline configurable #35

kec2 opened this issue Oct 9, 2016 · 1 comment
Labels

Comments

@kec2
Copy link

kec2 commented Oct 9, 2016

Could newline please be configurable as not everybody uses unix newlines?

@nedtwigg
Copy link
Member

nedtwigg commented Oct 9, 2016

Newline is configurable as documented in

spotless {
    ...
    lineEndings 'GIT_ATTRIBUTES'    // can also be WINDOWS, UNIX, or PLATFORM_NATIVE
}

However, if you're using git, I would highly recommend keeping Spotless' default behavior which is to use git's line ending behaviors, and use .gitattributes to set the line endings to Windows. Otherwise Spotless and Git will be fighting each other.

Here's more information on:

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