42School / norminette

Official 42 norminette
MIT License
956 stars 140 forks source link

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

Open SrVariable opened 3 months ago

SrVariable commented 3 months ago

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

Here's an image showing the bug: image