Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get Vera++ to ignore sections of code for some/all rules?

I am using Vera++ to perform some static analysis on my C++ code. (in Visual Studio 2008)

However, I have some blocks of code that I know, and accept, will break certain rules.

I'd like to be able to somehow tell Vera++ to avoid these methods or sections of code, so the reports show only the areas of code that I want to adjust.

Is there anything I can put into my code, eg a specially formatted comment, that would allow certain blocks of code to ignore certain rules?

like image 831
Dave Avatar asked Aug 22 '13 08:08

Dave


1 Answers

As gx_ said, --exclusions allow you to skip some files for specified rules. Click here for more information.

But it can not work for specified code snippet.

And here is an issue for vera asking for an enhance what you wanted, you can pay some attention on it.

like image 171
WKPlus Avatar answered Oct 19 '22 00:10

WKPlus