Detect mixed line endings
See original GitHub issueIt would be great if pre-commit-hooks
could detect mixed line endings.
In Atom (“Mixed”):
Keywords for future searches: newline, new line, end of line, end-of-line, EOL, line terminator, linebreak, line-break, line break, line-ending, linefeed, line feed, line-feed, LF, carriage return, carriage-return, CR, CRLF, CR-LF
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:13 (12 by maintainers)
Top Results From Across the Web
Mixed Line Ending Detection. Possible? - Community
Mixed Line Ending Detection. Possible? · Open the Find/Replace dialog and select the Regular expression search mode · Just click on the Count ......
Read more >A little program to look for files with inconsistent line endings
The main program takes the files enumerated by EnumerateFiles , ignores certain known binary file types, and for the remaining files, counts the ......
Read more >On windows, how would I detect the line ending of a file?
It will show you the line end formats used as either Unix(LF) or Macintosh(CR) or Windows(CR LF) on the task bar of the...
Read more >Mixed and inconsistent line endings - Visual Studio Feedback
It is really easy to reproduce. Just open two files (*.cpp in my case), one with CR+LF, another with LF line endings. Copy...
Read more >Line Endings - RAD Studio - Embarcadero DocWiki
RAD Studio requires CRLF line endings (Windows standard) and can detect and normalize when a file is not consistently CRLF, but has a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Or maybe even
--fix=auto
--fix=no
--fix=crlf
--fix=cr
?Thanks a ton to @nagromc for the idea and implementation here, this’ll make it into the next tagged release of pre-commit hooks 🎉