SublimeLinter / SublimeLinter-rubocop

SublimeLinter 3 plugin for Ruby, using rubocop.
MIT License
159 stars 40 forks source link

"Carriage return character missing." error occurs on first line in Sublime Text. (Windows, Ruby 2.3.3) #37

Closed johnsirett closed 7 years ago

johnsirett commented 7 years ago

Like the title says, the "Carriage return character missing." warning appears on the first line in ruby files with "rubocop" linter enabled.

Fails on a program as simple as: puts 'Hello world!'

Using default rubocop end-of-line behaviour (:native -> expects CRLF on windows) Running rubocop from the command line (Git Bash) claims no offenses.

Using Windows 10, with Ruby 2.3.3 (from RailsInstaller).

johnsirett commented 7 years ago

This is on ANY first line BTW. Same issue does not occur in subsequent lines in the file.

schmitmd commented 7 years ago

https://github.com/bbatsov/rubocop/issues/4293

ljkbennett commented 7 years ago

Not related to the linter - @schmitmd's link seems to explain how to fix it, so closing.