File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -397,12 +397,12 @@ SuppressionList::Suppression::Result SuppressionList::Suppression::isSuppressed(
397397 if (!errorId.empty () && !matchglob (errorId, errmsg.errorId ))
398398 return Result::Checked;
399399 } else {
400- if (!fileName.empty () && fileName != errmsg.getFileName () && !PathMatch::match (fileName, errmsg.getFileName ()))
401- return Result::None;
402400 if ((SuppressionList::Type::unique == type) && (lineNumber != NO_LINE) && (lineNumber != errmsg.lineNumber )) {
403401 if (!thisAndNextLine || lineNumber + 1 != errmsg.lineNumber )
404402 return Result::None;
405403 }
404+ if (!fileName.empty () && fileName != errmsg.getFileName () && !PathMatch::match (fileName, errmsg.getFileName ()))
405+ return Result::None;
406406 if (hash > 0 && hash != errmsg.hash )
407407 return Result::Checked;
408408 // the empty check is a hack to allow wildcard suppressions on IDs to be marked as checked
You can’t perform that action at this time.
0 commit comments