]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/trailing_whitespace.c
ccanlint: make sure fullname is always full path name.
[ccan] / tools / ccanlint / tests / trailing_whitespace.c
index f522d316e5c406742dc0e344be450114d83ca5f1..0fdd0cf847fa9653617bc89df0a40e0abd039282 100644 (file)
@@ -19,7 +19,8 @@ static char *report_on_trailing_whitespace(const char *line)
        return talloc_asprintf(line, "'%s'", line);
 }
 
-static void *check_trailing_whitespace(struct manifest *m)
+static void *check_trailing_whitespace(struct manifest *m,
+                                      unsigned int *timeleft)
 {
        char *report;
 
@@ -40,8 +41,12 @@ static const char *describe_trailing_whitespace(struct manifest *m,
 }
 
 struct ccanlint trailing_whitespace = {
-       .name = "No lines with unnecessary trailing whitespace",
+       .key = "trailing-whitespace",
+       .name = "Module's source code has no trailing whitespace",
        .total_score = 1,
        .check = check_trailing_whitespace,
        .describe = describe_trailing_whitespace,
 };
+
+
+REGISTER_TEST(trailing_whitespace, NULL);