Quantcast
Channel: Elliot Loves Perl » Perl::Critic
Browsing all 9 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Lesson of the day: Readonly, Exporter, and subroutine sigils

They don’t get along. As of the recent 1.07 release, Perl::Critic, has started using Readonly to be more more self-compliant with Perl Best Practices. We had been avoiding use of constant for the...

View Article



Image may be NSFW.
Clik here to view.

Writing configurable Perl::Critic Policies.

As of Perl::Critic 1.07, I would like to discourage the creation of constructors for Policies. Instead, I would encourage the use of P::C::Policy::initialize_if_enabled(). The reasoning is twofold....

View Article

Image may be NSFW.
Clik here to view.

Perl::Critic policies in the DarkPAN.

I’m curious about any people who’ve written custom Perl::Critic policies that aren’t on CPAN. What sorts of things are these for? Have you had a look at Perl::Critic 1.082? Have you read...

View Article

Image may be NSFW.
Clik here to view.

What kind of personality does Perl::Critic have?

Probably pedantic, but we’ll see what it says. Tagged: Perl::Critic, twitter

View Article

Image may be NSFW.
Clik here to view.

Perl::Critic supports autodie.

In chromatic’s session this morning, there was a comment that Perl::Critic didn’t support autodie. It actually has supported it since New Year’s day of this year. Let me say emphatically that one of...

View Article


Image may be NSFW.
Clik here to view.

How I use Perl::Critic.

Under regular development conditions, I rarely use perlcritic. Most of my Perl::Critic usage is via Test::Perl::Critic for new code and Test::Perl::Critic::Progressive for existing code. For code that...

View Article

Image may be NSFW.
Clik here to view.

Deprecation.

In the source repository, there are a number of changes to Perl::Critic that include deprecation of existing functions/methods. One Policy author has asked us to not do the deprecation because it will...

View Article

Image may be NSFW.
Clik here to view.

No Devel::Declare. Ever.

I think Devel::Declare is evil for the same reasons that Adam does. Even if PPI supports it, Perl::Critic will not be supporting any syntax that’s not part of the language core. Not only because it...

View Article


Image may be NSFW.
Clik here to view.

Don’t put Perl::Critic into source control pre-commit hooks.

Some people seem to like to put Perl::Critic tests into their VCS pre-commit hooks in order to prevent code with violations being checked in. I consider this to be a really bad idea. You should always...

View Article

Browsing all 9 articles
Browse latest View live




Latest Images