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?