in reply to Don't do this.
in thread Using Perl::Critic in Subversion hook script
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.pmThis 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.
|
|---|