Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single-line files are not caught by newline check. #70

Closed
the-t-in-rtf opened this issue Apr 16, 2021 · 2 comments
Closed

Single-line files are not caught by newline check. #70

the-t-in-rtf opened this issue Apr 16, 2021 · 2 comments
Assignees
Labels

Comments

@the-t-in-rtf
Copy link

On this line, the newline check is only run if the line number is greater than one. This means that files with a single line of content that lack a trailing newline are not reported as errors.

@schorfES
Copy link
Owner

Hello @the-t-in-rtf, thank you for the report and pointing to the effected line – sounds reasonable. I am going to test and fix this soonish.

@schorfES
Copy link
Owner

Hey @the-t-in-rtf,

i've added a test case and a fix into this PR: #72

I think that fixes your issue, correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants