42School / norminette

Official 42 norminette
MIT License
979 stars 142 forks source link

Bug in Norminette - Misleading Error Message for Comments After Enum Value Without Comma #517

Open Ahmed-Galadi opened 1 month ago

Ahmed-Galadi commented 1 month ago

Norminette generates a misleading error message when checking enum declarations that contain comments after a variable without a comma between the variable and the comment. This issue causes Norminette to flag a line far beyond the actual source of the error, which leads to confusion in debugging.

error error_out

norminette 3.3.55

when adding a comma in front of FALSE like "FALSE,//" or removing the comment it fixes the issue. this is the solution:

solution solution_out