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

Escaping new lines count as a single line instead of multiple lines #504

Open
SrVariable opened this issue Jun 28, 2024 · 0 comments
Open

Comments

@SrVariable
Copy link
Contributor

Describe the bug

Escaping new lines count as a single line instead of multiple lines which allow functions to have more than 25 lines, breaking the following rule:

Each function must be maximum 25 lines, not counting the function’s own curly
brackets.

Erroneous code

/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   norm.c                                             :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: ribana-b <ribana-b@student.42malaga.com>   +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2024/06/28 11:54:13 by ribana-b          #+#    #+# Malaga      */
/*   Updated: 2024/06/28 11:57:08 by ribana-b         ###   ########.com      */
/*                                                                            */
/* ************************************************************************** */

#include <stdio.h>

int	main(void)
{
	printf("Line 1\n\
Line 2\n\
Line 3\n\
Line 4\n\
Line 5\n\
Line 6\n\
Line 7\n\
Line 8\n\
Line 9\n\
Line 10\n\
Line 11\n\
Line 12\n\
Line 13\n\
Line 14\n\
Line 15\n\
Line 16\n\
Line 17\n\
Line 18\n\
Line 19\n\
Line 20\n\
Line 21\n\
Line 22\n\
Line 23\n\
Line 24\n\
Line 25\n\
Line 26\n\
Line 27\n\
Line 28\n");
	return (0);
}

Additional infos

$ norminette --version
norminette 3.3.55

Additional context

  • OS: Debian 12 Bookworm

Here's an image showing the bug:
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