test1185: Updated test data with NOSPACEC rule

Closes #14990
This commit is contained in:
Gabriel Marin 2024-09-23 00:23:37 +03:00 committed by Daniel Stenberg
parent cff75acfec
commit b7c9166c4c
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -165,6 +165,12 @@ void startfunc(int a, int b) {
./%LOGDIR/code1185.c:53:10: warning: use of snprintf is banned (SNPRINTF)
int a = snprintf(buffer, sizeof(buffer), "%d", 99);
^
./%LOGDIR/code1185.c:54:21: warning: missing space before colon (NOSPACEC)
int moo = hej?wrong:a>b;
^
./%LOGDIR/code1185.c:54:22: warning: missing space after colon (NOSPACEC)
int moo = hej?wrong:a>b;
^
./%LOGDIR/code1185.c:54:15: warning: missing space before question mark (NOSPACEQ)
int moo = hej?wrong:a>b;
^
@ -195,7 +201,7 @@ void startfunc(int a, int b) {
./%LOGDIR/code1185.c:1:1: error: Missing closing comment (OPENCOMMENT)
^
checksrc: 0 errors and 36 warnings
checksrc: 0 errors and 38 warnings
</stdout>
<errorcode>
5