Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Enable/disable Codan checkers programatically for a project

I have done it by using plugin_customization.in and adding lines like this:

org.eclipse.cdt.codan.core/org.eclipse.cdt.codan.checkers.errnoreturn=-Warning

On 15 Jul 2015, at 14:15, Marco Syfrig <marco.syfrig@xxxxxxxxx> wrote:

Hi

I want to enable/disable Codan checkers for a project programmatically. Is there a way to do this besides setting project properties and working with strings?

My current solution is to add a ‚-‘ to e.g. org.eclipse.cdt.codan.internal.checkers.InvalidArguments=Error (new: „-Error“). Is there a better way to do this? I’ve found http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg25727.html but this guy also used the string manipulation and wanted to achieve something else.

It seems like I need a CodanProblem and call setEnabled on it and save it somehow. However there are only two methods in the Codan plug-ins that return a CodanProblem instance and I cannot access them. Does the Codan Framework offer a method to enable/disable a checker for a project by its checker id?

Thanks,
Marco
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top