I\'ve started a conversion of a project to Moose and the first thing I noticed was that my critic/tidy tests go to hell. Moose, Tidy and Critic don\'t seem to like each other as
Earlier versions of Perl::Critic's "use strict" policy wasn't aware of Moose enabling strict for you, but that'll be fixed if you upgrade Perl::Critic.
I use both Perl::Critic and Perl::Tidy with Moose, and I don't see anything particularly broken. Well, actually, I can't get Perl::Tidy to layout things like this properly:
my $apple = Apple->new({
color => "red",
type => "delicious",
});
Tidy will insist that ( and { are two opening levels of indentation, and it will just look this silly:
my $apple = Apple->new({
color => "red",
type => "delicious",
});
But we had this problem before; the coding convention in the project is to use a hashref, not a hash, for named parameters. So it's not really a Moose related problem as such.
What exactly are your symptoms?
/J