Reputation: 89
I am using PC-Lint Plus and suppressing few lint warnings throughout the source code. Is there a way in PC-Lint Plus to get a report of line numbers (or file names) where someone has suppressed warnings for software risk analysis ? This will help evaluate if some ignored/suppressed warnings have good reasons to ignore/suppress or should be handled.
Upvotes: 2
Views: 280
Reputation: 375
Not that I'm aware of. But it's quite easy to write a script in your favourite scripting language to search for /*lint
and //lint
. If you have a rationale in the comment you can also extract that and include it in the report. If you want to be extra fancy you could even match the warning number to e.g. MISRA rules. It's a fun little exercise if you like writing scripts.
Upvotes: 1