I agree that there are situations when you *do* need to commit changes. That's why I've added new feature to the perlcritic-checker: emergency commits. The idea is very simple: when you are in a hurry, just place "magic" prefix in the beginning of the commit log message, e.g.:

svn ci -m "NO CRITIC: I am in hurry" FooBar.pm

This commit will bypass all checks. This code is not released yet, but I am in process of doing it.

I've also implemented so-called "progressive mode" just like in Test::Perl::Critic::Progressive module but without history files. Current commit is compared to the previous one on the fly. This way perlcritic-checker doesn't complain about existing violations but prevents introducing new ones.


In reply to Re: Don't do this. by xdr
in thread Using Perl::Critic in Subversion hook script by xdr

Title:
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, details, 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, summary, 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.