PerlDancer / Dancer2

Perl Dancer Next Generation (rewrite of Perl Dancer)
http://perldancer.org/
Other
546 stars 274 forks source link

Perl::Critic policy #1263

Open xsawyerx opened 8 years ago

xsawyerx commented 8 years ago

I had worked in the past on a Perl::Lint policy. It's available here.

I want to use this ticket to collect what this should include (possibly multiple policies) so it could be coordinated, documented, and written:

shumphrey commented 8 years ago

How about:

return send_error(); # superfluous return
xsawyerx commented 8 years ago

Added!

GeekRuthie commented 2 years ago

I have started this module, with two policies, ProhibitDeprecatedKeywords, and ProhibitUnrecommendedKeywords. It's available via CPAN now: Perl::Critic::Dancer2. I'll be adding more later, and your recommendations/suggestions/pull requests are absolutely welcome!

GeekRuthie commented 2 years ago

I've added a policy, "ReturnNotNeeded", which handles superfluous returns.

I also have additional ideas:

xsawyerx commented 2 years ago

@GeekRuthie This is a great service to all Dancer2 users. Great job!

I have a few notes which might (or might not) help:

Regarding your ideas:

Anyway, really cool work! :)