Thread (1 message) 1 message, 1 author, 2012-01-09

Re: RFC: option to toggle dtc checks on and off

From: Jon Loeliger <hidden>
Date: 2012-01-09 14:07:30

Jon, I was hoping I'd get some comment on this patch eventually.
Sorry/ .
On Fri, Oct 28, 2011 at 04:15:25PM +1100, David Gibson wrote:
quoted
Here is a draft patch which adds a -C option to dtc, allowing
individual semantic checks to be turned on and off.  It also allows
indivudual checks to be set as triggering either warnings or errors.
Turning checks on and off:  good.
quoted
I have a couple of concerns about it in its present form.  First, the
current syntax is that "-C -checkname" disables a check, "-C
checkname" turns a check on as a warning and "-C +checkname" turns it
on as an error.  I'm not convinced this is a great syntax.
Yeah, that's sub-obtimal.
What about using something like "-E checkname" and "-W checkname"?
quoted
Second, turning on a check will force on all prerequisite checks for
it.  Turning a check off will disable all checks for which it is a
prerequisite.  This seems necessary, since a check can't safely be
executed without having first checked its prereqs, but this could have
some very non-obvious effects from the command line.
Hmm...  That seems like maybe a small matter of documentation...?
And in which order do you apply the cmd line options for their implications?
Last one takes precedence?

HTH,
jdl
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help