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

Check for new line #13

Closed
Emmo00 opened this issue Nov 20, 2023 · 5 comments
Closed

Check for new line #13

Emmo00 opened this issue Nov 20, 2023 · 5 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@Emmo00
Copy link
Owner

Emmo00 commented Nov 20, 2023

for some reason alxcheck does not correctly check for the presence of of a trailing new line in a file
image

@Emmo00 Emmo00 added bug Something isn't working good first issue Good for newcomers labels Nov 20, 2023
@be-great
Copy link

For files ". c" and ". h" it works but not for ". md" files 👀🤔

@Emmo00
Copy link
Owner Author

Emmo00 commented Nov 27, 2023

Haven't tried it with a .c file tho

@samdoghor
Copy link
Contributor

For files ". c" and ". h" it works but not for ". md" files 👀🤔

I doubt. The .c and .h files, try using vi file_name.c or file_name.h, don't edit anything, just use :wq to save run your checks and it won't detect if there is a newline or not again. For the .md files, check line 26, ".md" is missing but it doesn't resolve the issue of saving with :wq and it doesn't detect if there is newline or not.

@Emmo00
Copy link
Owner Author

Emmo00 commented Nov 30, 2023

@samdoghor

This is because vim adds a newline to a file by default

@samdoghor
Copy link
Contributor

@samdoghor

This is because vim adds a newline to a file by default

Even when I opened and saved with VSCode same issue, the PR I did fixed it.

@Emmo00 Emmo00 closed this as completed in 93a4834 Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants