/*
* ccanlint: assorted checks and advice for a ccan package
* Copyright (C) 2008 Rusty Russell, Idris Soule
/*
* ccanlint: assorted checks and advice for a ccan package
* Copyright (C) 2008 Rusty Russell, Idris Soule
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
- printf("%s:\n", score->error);
+ printf("%s%s\n", score->error,
+ list_empty(&score->per_file_errors) ? "" : ":");
printf("%s:%s\n", f->file->fullname, f->error);
else
printf("%s\n", f->error);
printf("%s:%s\n", f->file->fullname, f->error);
else
printf("%s\n", f->error);
opt_register_noarg("--summary|-s", opt_set_bool, &summary,
"simply give one line summary");
opt_register_noarg("--verbose|-v", opt_inc_intval, &verbose,
opt_register_noarg("--summary|-s", opt_set_bool, &summary,
"simply give one line summary");
opt_register_noarg("--verbose|-v", opt_inc_intval, &verbose,
opt_register_arg("-x|--exclude <testname>", skip_test, NULL, NULL,
"exclude <testname> (can be used multiple times)");
opt_register_arg("-t|--timeout <milleseconds>", opt_set_uintval,
opt_register_arg("-x|--exclude <testname>", skip_test, NULL, NULL,
"exclude <testname> (can be used multiple times)");
opt_register_arg("-t|--timeout <milleseconds>", opt_set_uintval,
dir = talloc_asprintf_append(NULL, "%s/%s", base_dir, dir);
if (dir != base_dir)
prefix = talloc_append_string(talloc_basename(NULL, dir), ": ");
dir = talloc_asprintf_append(NULL, "%s/%s", base_dir, dir);
if (dir != base_dir)
prefix = talloc_append_string(talloc_basename(NULL, dir), ": ");