question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Detect mixed line endings

See original GitHub issue

It would be great if pre-commit-hooks could detect mixed line endings.

In Atom (“Mixed”): image

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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:13 (12 by maintainers)

github_iconTop GitHub Comments

6reactions
asottilecommented, Jun 7, 2017

Or maybe even --fix=auto --fix=no --fix=crlf --fix=cr?

1reaction
asottilecommented, Sep 8, 2017

Thanks a ton to @nagromc for the idea and implementation here, this’ll make it into the next tagged release of pre-commit hooks 🎉

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found