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

When last line of the file has space, norminette would hide all previous erros and not even tell about the space on last line as error. #503

Open
veliga-syutkin opened this issue Jun 23, 2024 · 0 comments

Comments

@veliga-syutkin
Copy link

veliga-syutkin commented Jun 23, 2024

Describe
When one would check norminette on a file, if it has only a space at the very last line, it would actually hide all previous errors and display this message (very difficult to understand, imho):

norminette_example2.c: Error!
	Error: Code ended unexpectedly.

Erroneous code

int main(void)
{
	// The header is 
	return (0); /*missing on purpose.*/
}

Additional infos
Copy and paste the output of norminette --version command here.

$ norminette --version         
norminette 3.3.50

Additional context
Here's quick view of the bug in the terminal (Linux Ubuntu 22.04 LTS):
image

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

No branches or pull requests

1 participant