Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

This is not only an RFC, but also a Request For Help.

In short, when I run this new policy against a simple test file I see the results I want, but it fails the regression test I've included from Perl::Critic. Beyond that, I would like suggestions for what config opitions might be desirable as well as help with documentation changes such as credits, etc.

The new policy project can be found on GitHub in the devel branch:

The following must be in the .perlcriticrc file:

exclude = Subroutines::RequireArgUnpacking include = Local::RequireArgUnpackOrShift

Those entries will allow the new policy to be picked up while at the same time disabling the policy it is intended to replace (assuming you are in the lib directory of the distro.)

The regression test can be run as you would expect from the top dir in the distro:

$ prove -l t

Again, assuming you are in the lib dir in the distro, you can run this command to test a given file and use the new policy:

$ perlcritic <path-to-file>/

Here is the source for

[~/perl/test]# cat package CriticTest; use Moose; our $VERSION = '1.01'; has 'needs_build' => ( isa => 'Int', is => 'rw', lazy => 1, builder => '_build_needs_build', ); sub _build_needs_build { my $self = shift; my %args = @_; return $self; } 1; __END__

Please feel free to to leave comments (good, bad and ugly) here or on Git. I feel this could be a welcome additon on CPAN if I can work out the kinks with your kind help.

On time, cheap, compliant with final specs. Pick two.

In reply to RFC - Perl::Critic policy to allow "my $self = shift;" to be valid for unpacking @_ by boftx

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    [holli]: meh, i never get used to this keyboard
    [holli]: i didnt pay attention when i bought it. it's one of those where backspace is just one unit wide
    [holli]: in what way improved?
    [ambrus]: I may have ruined my good keyboard on Friday by spilling tea in it. I hope it's just temporarily malfunctioning until it dries out, but I fear it might be permanently damaged.
    [holli]: did you soak the controller boardlet?
    [Eily]: could be worse, you might have ruined your tea with the content of the keyboard
    [holli]: if you didnt you should be fine
    LanX .oO( holli needs standards which are standardized!!)
    [holli]: do i?
    [holli]: oh for the keyboard

    How do I use this? | Other CB clients
    Other Users?
    Others perusing the Monastery: (12)
    As of 2017-11-21 13:48 GMT
    Find Nodes?
      Voting Booth?
      In order to be able to say "I know Perl", you must have:

      Results (302 votes). Check out past polls.