In #236, @wumpz reported a problem where, if I understand correctly, Spotless and Git don't agree on what sort of line endings they should both use; Git thinks it should use auto line endings, according to our .gitattributes, but Spotless seems to think otherwise?
@wumpz Would you mind either confirming my understanding or clarifying what I've misunderstood?
Regardless, there are two possible solutions that come to mind:
-
Upgrade Spotless to the latest version, in the hope that it recognises GIT_ATTRIBUTES by default.
-
Tell both Git and Spotless to consistently use some sort of line ending, like Unix LF.
In #236, @wumpz reported a problem where, if I understand correctly, Spotless and Git don't agree on what sort of line endings they should both use; Git thinks it should use
autoline endings, according to our.gitattributes, but Spotless seems to think otherwise?@wumpz Would you mind either confirming my understanding or clarifying what I've misunderstood?
Regardless, there are two possible solutions that come to mind:
Upgrade Spotless to the latest version, in the hope that it recognises
GIT_ATTRIBUTESby default.Tell both Git and Spotless to consistently use some sort of line ending, like Unix LF.