char *err = get_trailing_whitespace(lines[i]);
if (err) {
score->error = "Trailing whitespace"
- "found";
+ " found";
score_file_error(score, f, i+1, err);
}
}
}
}
-struct ccanlint trailing_whitespace = {
- .key = "trailing-whitespace",
+struct ccanlint no_trailing_whitespace = {
+ .key = "no_trailing_whitespace",
.name = "Module's source code has no trailing whitespace",
.check = check_trailing_whitespace,
+ .needs = ""
};
-REGISTER_TEST(trailing_whitespace, NULL);
+REGISTER_TEST(no_trailing_whitespace);