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 and adding lines like this:


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


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 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?

cdt-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top