]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/trailing_whitespace.c
ccanlint: Add -k option to keep results.
[ccan] / tools / ccanlint / tests / trailing_whitespace.c
index e5d2102ec295c389db2a6627de5a7ce762c3c9de..80bf42c49705cc9d0deacd1cfd68db7d9ff8dc05 100644 (file)
@@ -19,7 +19,9 @@ static char *report_on_trailing_whitespace(const char *line)
        return talloc_asprintf(line, "'%s'", line);
 }
 
        return talloc_asprintf(line, "'%s'", line);
 }
 
-static void *check_trailing_whitespace(struct manifest *m)
+static void *check_trailing_whitespace(struct manifest *m,
+                                      bool keep,
+                                      unsigned int *timeleft)
 {
        char *report;
 
 {
        char *report;
 
@@ -40,7 +42,8 @@ static const char *describe_trailing_whitespace(struct manifest *m,
 }
 
 struct ccanlint trailing_whitespace = {
 }
 
 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,
        .total_score = 1,
        .check = check_trailing_whitespace,
        .describe = describe_trailing_whitespace,