From b7c9166c4c5de3996c9d5591106e5236c2808fd7 Mon Sep 17 00:00:00 2001 From: Gabriel Marin Date: Mon, 23 Sep 2024 00:23:37 +0300 Subject: [PATCH] test1185: Updated test data with NOSPACEC rule Closes #14990 --- tests/data/test1185 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/data/test1185 b/tests/data/test1185 index a3ec33d46d..c3133aa23b 100644 --- a/tests/data/test1185 +++ b/tests/data/test1185 @@ -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 5 -- 2.47.3