Skip to content

Commit

Permalink
do not report safety report always
Browse files Browse the repository at this point in the history
  • Loading branch information
danmar committed Dec 18, 2023
1 parent 8b74bd5 commit 5fac3ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cli/cppcheckexecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,8 @@ int CppCheckExecutor::check_internal(CppCheck& cppcheck) const
cppcheck.tooManyConfigsError(emptyString,0U);
}

mStdLogger->writeCheckersReport();
if (false) // <- TODO: settings.safety
mStdLogger->writeCheckersReport();

if (settings.xml) {
mStdLogger->reportErr(ErrorMessage::getXMLFooter());
Expand Down
2 changes: 0 additions & 2 deletions test/cli/testutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ def cppcheck(args, env=None):
comm = p.communicate()
stdout = comm[0].decode(encoding='utf-8', errors='ignore').replace('\r\n', '\n')
stderr = comm[1].decode(encoding='utf-8', errors='ignore').replace('\r\n', '\n')
if stdout.find('\nActive checkers:') > 0:
stdout = stdout[:1 + stdout.find('\nActive checkers:')]
return p.returncode, stdout, stderr


Expand Down

0 comments on commit 5fac3ce

Please sign in to comment.