nxstyle: Ignore long line for file path at line 2
This patch fixes the issue reported by PR #12345 where the file path existent in the second line of each source file on NuttX. Sometimes the path could be too long and could raise a nxstyle issue during the CI test. Signed-off-by: Alan C. Assis <acassis@gmail.com>
This commit is contained in:
parent
5df4925672
commit
056eb46d69
1 changed files with 10 additions and 1 deletions
|
|
@ -3093,7 +3093,16 @@ int main(int argc, char **argv, char **envp)
|
|||
|
||||
if (m > g_maxline && !rhcomment)
|
||||
{
|
||||
ERROR("Long line found", lineno, m);
|
||||
/* Ignore the line 2 (file path) */
|
||||
|
||||
if (lineno == 2)
|
||||
{
|
||||
INFO("Skipping checking line 2: path file\n", 2, m);
|
||||
}
|
||||
else
|
||||
{
|
||||
ERROR("Long line found", lineno, m);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue