nimble-code / Cobra

An interactive (fast) static source code analyzer
139 stars 31 forks source link

Restrict analysis to certain files #4

Closed keck-in-space closed 4 years ago

keck-in-space commented 5 years ago

Is it possible to restrict analysis output to certain files only? There are a lot of library files that are part of the ARM CMSIS standard that cause Cobra to output matches, but that are not relevant for analysis since those files won't be changed. Is there a way to filter the output to only specific files?

nimble-code commented 5 years ago

Hi David, There's no builtin option to filter those warnings, but it would be easy to postprocess the output with an awk-filter and throw out all the non-relevant matches. I guess one could imagine a command line option that sets a prefix for all file matches that should be ignored. It's a thought. -g

On Wed, Nov 6, 2019 at 12:05 PM David Keck notifications@github.com wrote:

Is it possible to restrict analysis output to certain files only? There are a lot of library files that are part of the ARM CMSIS standard that cause Cobra to output matches, but that are not relevant for analysis since those files won't be changed. Is there a way to filter the output to only specific files?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nimble-code/Cobra/issues/4?email_source=notifications&email_token=AK6L6IOZSMCNMZ2SDVBGPZTQSMPQFA5CNFSM4JJ4DLV2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HXKZQWQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK6L6INV4PUTMD6SUACPGUTQSMPQFANCNFSM4JJ4DLVQ .

keck-in-space commented 5 years ago

That's true. I'll give awk a try. Thank you!