sindresorhus/refined-github

Extension displays a "no new-line at end of file" warning for C++ #4241

jcelerier posted onGitHub

It happens here on the last file at the bottom:

https://github.com/jcelerier/libremidi/pull/47/files

Except that since C++ 11 it is valid to not have a new line at end of file, is there a way to not have this show up as an error so that I do not get bogus pull requests ? :p

Thanks


I don't know what you're referring to, please include a screenshot.

If it's what I'm guessing, that's not a Refined GitHub feature, but I don't see it anywhere anyway

posted by fregante almost 4 years ago

Ah it was force-pushed. Indeed it's what I thought.

<img width="149" alt="Screen Shot 2" src="https://user-images.githubusercontent.com/1402241/114908867-b9616800-9e46-11eb-93b8-f4ea4c9d23fd.png">

That's a GitHub feature and language support is irrelevant. It's not an error but just a visual clue that the file does not end with a line break as expected.

posted by fregante almost 4 years ago

Fund this Issue

$0.00
Funded

Pull requests