Ah, the enabled=false is exactly what I needed.
I'm going to take a break from my other work and bang out a few new rules this week. I'd like the 0.12 release to be just a little larger!
--
Hamlet D'Arcy
ham...@ca...
----- Original Message -----
> Hamlet,
>
> Options include:
> (1) Override the isReady () method to dynamically return true only if
> the necessary preconditions are satisfied (see RequiredRegexRule , for
> instance).
> (2) In the rule constructor, set enabled property to false .
>
> Chris
>
>
> Hamlet DArcy <ham...@ca...>
>
> 01/11/2011 09:05 AM
>
> To cod...@li...
>
> cc
>
> Subject [Codenarc-developer] how do I write a new rule that is
> disabled by default?
>
>
>
>
> How do I add a new rule that is disabled by default?
>
> It is a rule that is valid but most people do not want it.
>
> Thanks,
>
> --
> Hamlet D'Arcy
> ham...@ca...
>
>
> ------------------------------------------------------------------------------
> Gaining the trust of online customers is vital for the success of any
> company
> that requires sensitive data to be transmitted over the Web. Learn how
> to
> best implement a security strategy that keeps consumers' information
> secure
> and instills the confidence they need to proceed with transactions.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Codenarc-developer mailing list
> Cod...@li...
> https://lists.sourceforge.net/lists/listinfo/codenarc-developer
>
> ForwardSourceID:NT000F460A
|