#769757 cppcheck: whenever I run cppcheck in a directory without C/C++ files it complains

Package:
cppcheck
Source:
cppcheck
Description:
tool for static C/C++ code analysis (CLI)
Submitter:
Paul Wise
Date:
2021-09-22 04:42:08 UTC
Severity:
minor
Tags:
#769757#5
Date:
2014-11-16 07:49:49 UTC
From:
To:
I'm writing a tool called check-all-the-things[1], which is a wrapper
for all of the available checking tools. Since cppcheck can find input
files on its own, I have made c-a-t-t unconditionally run cppcheck.
Unfortunately on directories without C/C++ files it complains. I think
this is unnecessary and just increases noise from c-a-t-t and other
tools that may run cppcheck. For example:

$ rm -rf foo ; mkdir foo ; cd foo ; cppcheck --quiet -f . ; cd .. ; rm -rf foo
cppcheck: error: could not find or open any of the paths given.

     1. https://anonscm.debian.org/cgit/collab-maint/check-all-the-things.git

#769757#10
Date:
2015-09-12 08:39:53 UTC
From:
To:
forwarded 769757 http://trac.cppcheck.net/ticket/6995
tag 769757 + upstream
thanks

#769757#19
Date:
2015-10-04 04:39:52 UTC
From:
To:
tag 769757 + upstream
thanks

Upstream decided not to change the behavior.

#769757#24
Date:
2015-10-07 21:32:54 UTC
From:
To:
tag 769757 + wontfix
thanks

Upstream decided not to change the behavior.
(Resending message to set the wontfix tag.)

#769757#31
Date:
2015-12-15 05:26:07 UTC
From:
To:
FYI, bug submitters are not subscribed by default,
it would have been nice to have gotten a CC on this.
Thanks for forwarding it upstream anyway :)

#769757#38
Date:
2021-09-22 04:23:55 UTC
From:
To:
Hello,

Good morning,

We have gone through your samples from a partner and Here is our  Order
List. Please do bear in mind that we are very much in  need of this
order, quote your competitive prices.

Kindly send the Order confirmation.

Your early reply will be much appreciated.

Best Regards,

Maryanah Erwin.

PT FINDORA INTERNUSA

Jln Pahlawan 66 Kec. Arjawinangun

45162 CIREBON West-Java INDONESIA

tel : +62 231 357334

fax: +62 231 357260

email: marketing@findora.com