Skip to main content

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


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?


Back to the top