Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Disabling codan errors

Hi Alena,
I asked something similar a while ago but didn't get answers in the list. I believe if you are packaging your own product the right way is to customize it is to put the desirable preferences in plugin_customization.ini file. So maybe Codan can define a preference where you would put the list of checkers or something like that.

I haven't get to do plugin_customization.ini though so take this with a grain of salt. There is an old link http://www.ibm.com/developerworks/opensource/library/os-ecfeat/ with an example in my collection of random links, not sure how good it is.

Thanks,
Andrew


On Fri, Nov 11, 2011 at 4:11 PM, Alena Laskavaia <elaskavaia.cdt@xxxxxxxxx> wrote:
That would be strange question coming from me but anyway.

So we added codan feature to our cdt base product (called Momentics).
Our customers mostly use C++ and indexer never works for them for some
reason properly
so they always end-up with many errors which also confusing for them
because compiler does not report them.

Since fighting indexer is advanced skill I want to disable codan
semantics errors out of the box, but so user
can enable them later.

The problem is architecture of codan does not allow to do it nicely
(or not at all right now).
Current way of doing it - every checker contribute a "desire" to be
enabled by default (or not), When plugin
initializes, if default settings are not there for workspace it will
create a default enablement list based on that desire.
So how can I fit in this schema the product requirement of disabling
semantic errors by default?
If I would list all problem I want to disable it would not solve the
problem because new checkers can be contributed
in new version, and I don't want to modify my list every time. What is
the standard mechanism for such things? Did anybody
else did this for their product? Where such configuration would go?
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top