No unmatched suppressions list in quiet output.
When user wants to see only errors printed (--quiet in CLI) we must obey that. And not print unmatchedSuppressions list. Ticket: #2895 (Cannot suppress unmatchedSuppression reports)
This commit is contained in:
parent
7e8f5be4b6
commit
e86abfdc5f
|
@ -189,6 +189,7 @@ int CppCheckExecutor::check(int argc, const char* const argv[])
|
||||||
|
|
||||||
if (!cppCheck.settings().checkConfiguration)
|
if (!cppCheck.settings().checkConfiguration)
|
||||||
{
|
{
|
||||||
|
if (!_settings._errorsOnly)
|
||||||
reportUnmatchedSuppressions(cppCheck.settings().nomsg.getUnmatchedGlobalSuppressions());
|
reportUnmatchedSuppressions(cppCheck.settings().nomsg.getUnmatchedGlobalSuppressions());
|
||||||
|
|
||||||
if (Preprocessor::missingIncludeFlag)
|
if (Preprocessor::missingIncludeFlag)
|
||||||
|
|
|
@ -189,6 +189,7 @@ unsigned int CppCheck::processFile()
|
||||||
_errorLogger.reportOut("Bailing out from checking " + fixedpath + ": " + e.what());
|
_errorLogger.reportOut("Bailing out from checking " + fixedpath + ": " + e.what());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!_settings._errorsOnly)
|
||||||
reportUnmatchedSuppressions(_settings.nomsg.getUnmatchedLocalSuppressions(_filename));
|
reportUnmatchedSuppressions(_settings.nomsg.getUnmatchedLocalSuppressions(_filename));
|
||||||
|
|
||||||
_errorList.clear();
|
_errorList.clear();
|
||||||
|
|
Loading…
Reference in New Issue