Open
Description
I propose we allow fantomas --check
to accept ok the files that only contain different line-ending style than original (Windows/Unix/Mac). (So \n
or \r\n
or whatever).
Why?
Right now what happens is:
- fantomas detects "fantomas needs to run". Really important to run it now, otherwise build won't pass!
- Then when I run it, it changes the endings to be happy.
- git detects there is thousands of modified files. However, (with default git settings, line-endings not set) they are with no changes, nothing to commit.
- I'm not going to create PRs to format 1000 of line-endings. OSS-maintainers would just decline the PR. Would cause merge-issues with any other PR open in repo.
- ...so after build pass, I "reset file or directory changes" of all these non-modified files.
- Any time you need to do a tiny change/PR, repeat: Goto 1.
I don't see world to be a better place with this procedure in place, it just wastes electricity and natural resources of this planet.