dawnbeen / c_formatter_42

C language formatter for 42 norminette
GNU General Public License v3.0
176 stars 17 forks source link

After formatting an header file, does not pass the norminette because of too many tabs #51

Closed bcheronn closed 1 year ago

bcheronn commented 1 year ago

Formatted my header first:

c_formatter_42 get_next_line.h
Writing to get_next_line.h

Then checked it with the norminette:

norminette get_next_line.h
get_next_line.h: Error!
Error: TOO_MANY_TAB         (line:  27, col:   1):      Extra tabs for indent level
Error: TOO_MANY_TAB         (line:  28, col:   1):      Extra tabs for indent level

The invalid code (not properly shown below because of 8 chars tabs):

void    ft_prcstash(char **stash,
                    const char buf[BUFFER_SIZE],
                    const ssize_t btsread);

Had to remove 2 tabs on each line 27 and 28 to pass the norminette:

void    ft_prcstash(char **stash,
            const char buf[BUFFER_SIZE],
            const ssize_t btsread);
cacharle commented 1 year ago

Duplicate of #50

younesaassila commented 1 year ago

Issue due to bad regexp in align.py formatter config of clang format. Working on it