42School / norminette

Official 42 norminette
MIT License
956 stars 140 forks source link

Global variable warning only appears if there's a norm error #501

Closed ScarletPixie closed 4 months ago

ScarletPixie commented 4 months ago

The norminette program only shows the global variable detected notice if there's some norm error in the file.

code:

//NO warning:

char const  *g_map[] = {
    "111111",
    "  1001",
    "111P01",
    "100001",
    "11W11",
    "11111",
    NULL,
};

int main(void)
{
    return (0);
}
//GIVES a both a norm error (no new line after var declaration and the global variable warning):
char const  *g_map[] = {
    "111111",
    "  1001",
    "111P01",
    "100001",
    "11W11",
    "11111",
    NULL,
};

int main(void)
{
    char    *something;
    (void)something;
    return (0);
}

Additional infos norminette 3.3.54

Additional context "no warning" Screenshot from 2024-06-20 10-16-23

"error and warning" Screenshot from 2024-06-20 10-17-37

NiumXp commented 4 months ago

Hello, @ScarletPixie!

This issue is already fixed in norminette 3.3.55 according to https://github.com/42School/norminette/pull/459.

ScarletPixie commented 4 months ago

got it

ScarletPixie commented 4 months ago

fixed on version 3.3.55