Skip to content

Commit

Permalink
nxstyle: Ignore long line for patch file at line 2
Browse files Browse the repository at this point in the history
  • Loading branch information
acassis committed May 14, 2024
1 parent c234fac commit 9bf5f05
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tools/nxstyle.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

Expand Down

0 comments on commit 9bf5f05

Please sign in to comment.