Add line-ending detection to linter
See original GitHub issueSeems like a bad meta.yaml
with CRLF gummed up the works for a bunch of folks on staged-recipes
… it seems reasonable to detect and warn about line endings.
Issue Analytics
- State:
- Created 3 years ago
- Comments:19 (19 by maintainers)
Top Results From Across the Web
An option to enforce certain line endings (LF / CRLF) #5320
If someone accidentally adds \r to this first line and Prettier keeps it, ... Note that the files with CRLF are covered by...
Read more >How can I write a ESLint rule for "linebreak-style", changing ...
This rule enforces that all line endings are always unix consistent ( \n ) each ... and under rules add the linebreak option...
Read more >Automatically format and lint code with pre-commit - Interrupt
How to use pre-commit for automated linting, formatting, and styling firmware code by using Python, clang-format, clang-tidy, and prettier.
Read more >Invalid highlights for CRLF line endings when using typescript ...
The errors are shown as Warning:(1, 32) tslint: Insert ␍ (prettier) If I run npm run lint then linter does not show any...
Read more >D17814 Detect trailing spaces and tabs - Phabricator
but generally seems to work while preserving line endings. If you'd like I can send testfile to paste or add to this diff...
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 Free
Top 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
Yes. This is just for when the linter checks out the code so that it can find the offending line endings without git getting in the way.
Found another thing: https://docs.python.org/3/library/functions.html#open-newline-parameter
So setting the option
''
should give us the unchanged output, if I understand this correctly.