]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/license.c
ccanlint: rename structures to match keys
[ccan] / tools / ccanlint / tests / license.c
index 35a4d39379fdf92d641fe31a74a628a0ee18bc16..965a159ff8fff53f15bea96d4675c052eedbd9f0 100644 (file)
@@ -11,6 +11,8 @@
 #include <ccan/talloc/talloc.h>
 #include <ccan/str/str.h>
 
+struct ccanlint has_license;
+
 static struct doc_section *find_license(const struct manifest *m)
 {
        struct doc_section *d;
@@ -147,10 +149,11 @@ static void check_has_license(struct manifest *m,
        score->score = score->total;
 }
 
-struct ccanlint has_license = {
-       .key = "has-license",
-       .name = "Module has license",
+struct ccanlint license_exists = {
+       .key = "license_exists",
+       .name = "Module has License: entry in _info, and LICENSE symlink/file",
        .check = check_has_license,
+       .needs = "info_exists"
 };
 
-REGISTER_TEST(has_license, &has_info, NULL);
+REGISTER_TEST(license_exists);