]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test1185: Updated test data with NOSPACEC rule
authorGabriel Marin <marin.gabriel@protonmail.com>
Sun, 22 Sep 2024 21:23:37 +0000 (00:23 +0300)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 25 Sep 2024 06:01:58 +0000 (08:01 +0200)
Closes #14990

tests/data/test1185

index a3ec33d46df905156ff727a65faccde29777da99..c3133aa23b5f89bf0830be96d954d17ea618be6e 100644 (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