TreyWaters has asked for the wisdom of the Perl Monks concerning the following question:
So, we have a "corporate" perlcriticrc file that we've been using before checking in our code. However, there are a few policies that I would prefer our team to be more strict on (and the owner of this file doesn't agree).
So, is it possible to create a .perlcriticrc which first loads the policy set from a second .perlcriticrc, then overrides anything loaded?
What I'm thinking is something like:
load_rc_file = /path/to/corporate/perlcriticrc # Corporate rc allows dead code. We don't want that [Subroutines:ProhibitUnusedPrivateSubroutines] # Corporate rc allows too high complexity. [Modules:ProhibitExcessMainComplexity] max_mccabe = 10
I'm just lost on how to "include" another perlcriticrc. I know that I can override with command-line options. Unfortunately, asking my team to add an option or two to their perlcritic runs is much too complicated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perlcritic - Is it possible to "nest" perlcriticrc files?
by Anonymous Monk on Mar 09, 2016 at 19:55 UTC | |
by TreyWaters (Initiate) on Mar 09, 2016 at 20:41 UTC | |
|
Re: perlcritic - Is it possible to "nest" perlcriticrc files?
by codiac (Beadle) on Mar 18, 2016 at 14:30 UTC |