Grinnz / Perl-Critic-Community

Perl::Critic::Community - Community-inspired Perl::Critic policies
https://metacpan.org/pod/Perl::Critic::Community
Other
8 stars 10 forks source link

Warn that future Perl core changes might affect your script #16

Closed vytas-dauksa closed 9 years ago

vytas-dauksa commented 9 years ago

Not sure if this is in scope for Perl::Critic::Freenode namespace, but for a while I was thinking - how nice it would be to have a module that reports deprecated/removed things in future Perl's than the one you are using.

It's a pain to implement and this can be already achieved by running your library against newer Perl versions ( perhaps with the help of Perlbrew or etc. ). Though, this would be great CI/code review tool.

Grinnz commented 9 years ago

I considered this but "use warnings" tends to cover it in most cases, however you make a good point that this won't cover older versions of perl. I will consider adding policies for deprecated or experimental features. Thanks for the idea.

Grinnz commented 9 years ago

added policy in v0.011