You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/04/06 18:08:32 UTC

[GitHub] [incubator-nuttx] patacongo opened a new pull request #743: tools/nxstyle.c: Fix detection of long single line comments.

patacongo opened a new pull request #743: tools/nxstyle.c:  Fix detection of long single line comments.
URL: https://github.com/apache/incubator-nuttx/pull/743
 
 
   This resolves issue #718:  nxstyle line width check was ignoring the line width check for single line comments.
   
   This turned out to be an artifact in parsing.  Usually when parsing character by character, the file character to be parsed was '/n'.  Howefver, in the case of parsing single line comments, the final character was the NUL terminator.  This means that the lenth check was not being performed in the case of single line comments.
   
   NOTE:  Currently, I have suppressed error reports for single line right-hand comments.  My fear is that this will unmask more standard violations than we can cope with.  It is easy to re-enable and perhaps we should do that in the future:
   
             /* Check for long lines
              *
              * REVISIT:  Long line checks suppressed on right hand comments
              * for now.  This just prevents a large number of difficult-to-
              * fix complaints that we would have otherwise.
              */
   
             if (m > g_maxline && !rhcomment)  <-- remote the second condition

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-nuttx] Ouss4 merged pull request #743: tools/nxstyle.c: Fix detection of long single line comments.

Posted by GitBox <gi...@apache.org>.
Ouss4 merged pull request #743: tools/nxstyle.c:  Fix detection of long single line comments.
URL: https://github.com/apache/incubator-nuttx/pull/743
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services