Skip to content

Commit

Permalink
Executor: adjusted some checks in hasToLog() (#7210)
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave authored Feb 5, 2025
1 parent a4fdfe9 commit 784401e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ Executor::Executor(const std::list<FileWithDetails> &files, const std::list<File
// TODO: this logic is duplicated in CppCheck::reportErr()
bool Executor::hasToLog(const ErrorMessage &msg)
{
if (!mSettings.library.reportErrors(msg.file0))
return false;
if (msg.severity == Severity::internal)
return true;

if (!mSuppressions.isSuppressed(msg, {}))
{
Expand Down

0 comments on commit 784401e

Please sign in to comment.