Per module path would be good for site modules, but not great for forge
modules. Maybe both could be supported.

On Tuesday, February 23, 2016, Ryan Whitehurst <r...@puppetlabs.com> wrote:

> On Tue, Feb 23, 2016 at 3:22 PM, Walter Heck <walterh...@olindata.com
> <javascript:;>> wrote:
> > On Tuesday, February 23, 2016 at 11:31:18 PM UTC+1, Ben Ford wrote:
> >>
> >> Would it be possible in this scheme to mark strict mode per class? I
> could
> >> mark my own code as being strict and therefore get compile time failures
> >> when I make a typo myself, but wouldn't have to enforce that on all
> third
> >> party code.
> >
> >
> > Instead of per class I'd like to be able to set it per (module)path. We
> use
> > r10k and split the role and profile modules to their own modulepath
> > (typically called 'site'), all 3rd party modules live in the standard
> > modulepath.
> >
> > I could also imagine people wanting to set this per environment.
> >
> > Lastly, I think --strict=ignore should be --strict=off, but that's
> personal
> > preference.
>
> I agree with everything Walter is saying here. Per-class would be
> difficult, but if there was a way to set it per-modulepath, you could
> accomplish what Ben is asking for. It should also definitely be an
> available setting in environment.conf.
>
> --strict=off seems a bit nicer to me as well than does
> --strict=ignore, but I don't care much.
>
> My first thought is that --strict=warn would make a sensible default
> in this scenario, as it's most similar to puppet's traditional
> behavior of showing deprecation warnings every time.
>
> > great idea, hope to see it come to life sooner rather then later :)
> >
> > cheers,
> >
> > Walter
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Puppet Developers" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to puppet-dev+unsubscr...@googlegroups.com <javascript:;>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/puppet-dev/6c8709a0-30ae-43d8-b558-3819b4b5dd85%40googlegroups.com
> .
> >
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-dev+unsubscr...@googlegroups.com <javascript:;>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-dev/CAHTHiAE8pFAA-O0Zf6d_MJrgiyxqw72s_YcXizHAe%3Di9-2vBzg%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 

Rob Nelson
rnels...@gmail.com

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/CAC76iT8j2zPV-FBn1QNiZ6L-C1-NjoUHgeETWOHiZRqWT7M_xw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to