Line too long, but line only have 74 chars
andreyvdl opened this issue · 1 comments
andreyvdl commented
Describe the bug
the norminette detects this line as too long, but the line is just 74 chars.
Erroneous code
bool ft_isspace(int c)
{
if (c == ' ' & c == '\t' & c == '\n' & c == '\v' & c == '\f' & c == '\r')
return (true);
return (false);
}
Additional infos
- OS: openSUSE Tumbleweed version 20230915 on Windows 11 x86_64 (Linux 5.15.90.1-microsoft-standard-WSL2 x86_64 x86_64 x86_64 GNU/Linux)
- python3 --version: 3.11.5
- norminette -v: 3.3.54
Additional context
- IsControlStatement In "Function" from "GlobalScope" line 17":
<TAB> <IF> <SPACE> <LPARENTHESIS> <IDENTIFIER=c> <SPACE> <EQUALS> <SPACE> <CHAR_CONST=' '> <SPACE> <BWISE_AND> <SPACE> <IDENTIFIER=c> <SPACE> <EQUALS> <SPACE> <CHAR_CONST='\t'> <SPACE> <BWISE_AND> <SPACE> <IDENTIFIER=c> <SPACE> <EQUALS> <SPACE> <CHAR_CONST='\n'> <SPACE> <BWISE_AND> <SPACE> <IDENTIFIER=c> <SPACE> <EQUALS> <SPACE> <CHAR_CONST='\v'> <SPACE> <BWISE_AND> <SPACE> <IDENTIFIER=c> <SPACE> <EQUALS> <SPACE> <CHAR_CONST='\f'> <SPACE> <BWISE_AND> <SPACE> <IDENTIFIER=c> <SPACE> <EQUALS> <SPACE> <CHAR_CONST='\r'> <RPARENTHESIS> <NEWLINE>
...
Error: LINE_TOO_LONG (line: 17, col: 82): line too long
I set a red line in the 80 col of my vscode, and as you can see in this print it is inside the limit of the 42 Header, so it has less than 80 col.
matthieu42Network commented
duplicate of #439