Browse Source

Added EditorConfig configuration.

silvioprog 6 years ago
parent
commit
f8e93c45ae
5 changed files with 13 additions and 1 deletions
  1. 9 0
      .editorconfig
  2. 1 0
      test/test_httpres.c
  3. 1 0
      test/test_routes.c
  4. 1 1
      test/test_str.c
  5. 1 0
      test/test_strmap.c

+ 9 - 0
.editorconfig

@@ -0,0 +1,9 @@
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
+indent_size = 2
+indent_style = space
+insert_final_newline = true
+trim_trailing_whitespace = true

+ 1 - 0
test/test_httpres.c

@@ -30,6 +30,7 @@
 
 #include <string.h>
 #include "sg_httpres.c"
+#include <sagui.h>
 
 #ifndef TEST_HTTPRES_BASE_PATH
 #ifdef __ANDROID__

+ 1 - 0
test/test_routes.c

@@ -36,6 +36,7 @@
 #include "sg_macros.h"
 #include "pcre2.h"
 #include "sg_routes.c"
+#include <sagui.h>
 
 static void route_cb(__SG_UNUSED void *cls,
                      __SG_UNUSED struct sg_route *route) {

+ 1 - 1
test/test_str.c

@@ -56,7 +56,7 @@ static void test_str_printf_va(struct sg_str *str, const char *fmt,
 static void test_str_printf(struct sg_str *str, const char *fmt, ...) {
   va_list ap;
   ASSERT(sg_str_printf(NULL, "%s", "") == EINVAL);
-  ASSERT(sg_str_printf(str, NULL) == EINVAL);
+  ASSERT(sg_str_printf(str, NULL) == EINVAL); //-V::575,618
 
   sg_str_clear(str);
   ASSERT(sg_str_printf(str, "%s", "") == 0);

+ 1 - 0
test/test_strmap.c

@@ -31,6 +31,7 @@
 #include <string.h>
 #include <errno.h>
 #include "sg_strmap.c"
+#include <sagui.h>
 
 static void test__strmap_new(void) {
   struct sg_strmap *pair = sg__strmap_new("ABC", "123");