]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/has_info_documentation.c
ccanlint: Add -k option to keep results.
[ccan] / tools / ccanlint / tests / has_info_documentation.c
index 17e4207eeaff856c3cf20b999bc5de02d212320d..2823e66b6700b10536838234604761c316f4ef96 100644 (file)
@@ -22,7 +22,9 @@ struct info_docs
        bool example;
 };
 
-static void *check_has_info_documentation(struct manifest *m)
+static void *check_has_info_documentation(struct manifest *m,
+                                         bool keep,
+                                         unsigned int *timeleft)
 {
        struct list_head *infodocs = get_ccan_file_docs(m->info_file);
        struct doc_section *d;
@@ -123,7 +125,8 @@ static unsigned int has_info_documentation_score(struct manifest *m,
 }
 
 struct ccanlint has_info_documentation = {
-       .name = "Documentation in _info file",
+       .key = "info-documentation",
+       .name = "Module has documentation in _info",
        .total_score = 3,
        .score = has_info_documentation_score,
        .check = check_has_info_documentation,