raiden00pl opened a new pull request, #19921:
URL: https://github.com/apache/nuttx/pull/19921
## Summary
Braces were only tested against a multiple of the indentation unit, so one
at the wrong level still passed.
## Impact
fix nxstyle
## Testing
test code that pass without this fix:
```
43 if (a > 0)
44 {
45 a--;
46 }
47
48 while (a < 10)
49 {
50 a++;
51 }
```
after this fix:
```
/home/raiden00/git/RTOS/nuttx/nuttx-nxstyle-fixes/test.c:46:8: error: Bad
right brace alignment
/home/raiden00/git/RTOS/nuttx/nuttx-nxstyle-fixes/test.c:49:8: error: Bad
left brace alignment
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]