Skip to content

Commit

Permalink
Improve verbose comments during lint (#47)
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti authored Jun 3, 2024
1 parent 0b670b8 commit 05039a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/command_lint.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ auto intelligence::jsonschema::cli::lint(
}
} else {
for (const auto &entry : for_each_json(options.at(""))) {
log_verbose(options) << "Linting: " << entry.first.string() << "\n";
const bool subresult = bundle.check(
entry.second, sourcemeta::jsontoolkit::default_schema_walker,
resolver(options),
Expand All @@ -43,7 +44,9 @@ auto intelligence::jsonschema::cli::lint(
std::cout << " " << message << " (" << name << ")\n";
});

if (!subresult) {
if (subresult) {
log_verbose(options) << "PASS: " << entry.first.string() << "\n";
} else {
result = false;
}
}
Expand Down

0 comments on commit 05039a5

Please sign in to comment.