42School / norminette

Official 42 norminette
MIT License
956 stars 140 forks source link

Improve comments #455

Closed NiumXp closed 11 months ago

NiumXp commented 11 months ago

Fixes #309, #439, #433.

Bugs that this PR solves

Wrong line reported when shows a LINE_TOO_LONG, reproduceable code:

/*
.............................................................................................*/

Actually, norminette says the first line is over 80 chars, but it's wrong. With 2869b275c8db45682fc182eb34729834d6995680 fix, now it says correctly that is the second line over 80 chars. Related to #309 and #433

When norminette parses a comment like /*\*/ it will understand it as /*\**/, note that it "duplicates" the *, in #439 the * is a (space). Btw, this is fixed by 85ce8726a14fb34345a7860021c06a2ed333f477.

Notes