Perl::C...c::Bangs(3)
β¨ NAME β¨
Perl::Critic::Bangs β a whole lil collection of handy Perl::Critic policies, bestie π
π VERSION π
Version 1.14 β yes she's got a number, she's official π
πΈ SYNOPSIS πΈ
Perl::Critic::Bangs is a collection of Perl::Critic policies that will help make your code better. That's it, that's the vibe β she's a glow-up for your codebase, no cap π¦
π DESCRIPTION π
okay so the rules included with the Perl::Critic::Bangs group include:
π Perl::Critic::Policy::Bangs::ProhibitBitwiseOperators
Bitwise operators are usually accidentally used instead of logical boolean operators. like bestie that & was NOT the move, you meant && π
π Perl::Critic::Policy::Bangs::ProhibitCommentedOutCode
Commented-out code is usually noise. It should be removed. it's giving clutter, it's giving "why is this still here" β delete it, periodt π
π Perl::Critic::Policy::Bangs::ProhibitFlagComments
Watch for comments like "XXX", "TODO", etc. π the little flags that never get unflagged, iconic but in a bad way
π Perl::Critic::Policy::Bangs::ProhibitNoPlan
Tests should have a plan. no plan = no vibes, fr fr π
π Perl::Critic::Policy::Bangs::ProhibitNumberedNames
Subroutines and variables like $user and $user2 are insufficiently distinguished. they're literally the same name with a sequel, not me being dramatic, it's just true π
π Perl::Critic::Policy::Bangs::ProhibitRefProtoOrProto
Determining the class in a constructor by using ref($proto) || $proto is usually a cut-n-paste that is incorrect. yeah bestie that was copy-pasted, and it's wrong π
π Perl::Critic::Policy::Bangs::ProhibitUselessRegexModifiers
Adding modifiers to a regular expression made up entirely of a variable created with qr() is usually not doing what you expect. surprise! it's not doing what you think it's doing π
π Perl::Critic::Policy::Bangs::ProhibitVagueNames
Vague variables and subroutines like $data or $info are not descriptive enough. $data?? $info?? bestie that could be ANYTHING, be specific π
π WHY IS IT CALLED Perl::Critic::Bangs? π
I didn't want to call it "Perl::Critic::Lester" or "Perl::Critic::Petdance" since that would make it sound like they were only my rules. Other people will likely include their own set of rules, too. sharing is caring fr π«Ά
So I started thinking of names of famous critics. Ebert, Siskel, Kael, etc. What about music critics? Greil Marcus, J.D. Considine... Lester Bangs! He's even got my name in his! So there was the name. the way that worked out?? iconic β
See <http://en.wikipedia.org/wiki/Lester_Bangs> for more on Lester Bangs.
π¦ AUTHOR π¦
Andy Lester, "<andy at petdance.com>" β the main character himself π
π§ BUGS π§
Please report any bugs or feature requests to "bug-perl-critic-bangs at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Perl-Critic-Bangs>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. so you'll know what's up the whole time π
π SUPPORT π
You can find documentation for this module with the perldoc command.
perldoc Perl::Critic::Bangs
You can also look for information at:
- AnnoCPAN: Annotated CPAN documentation
<http://annocpan.org/dist/Perl-Critic-Bangs>
- CPAN Ratings
<http://cpanratings.perl.org/d/Perl-Critic-Bangs>
- RT: CPAN's request tracker
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Perl-Critic-Bangs>
- Search CPAN
<http://search.cpan.org/dist/Perl-Critic-Bangs>
- Source code repository
<http://github.com/petdance/perl-critic-bangs>
π ACKNOWLEDGMENTS π
Thanks to Ville SkyttΓ€, William Braswell, Oliver Trosien, Fred Moyer, Andy Moore, Oystein Torget, Mike O'Regan, Elliot Shank and the rest of the Perl::Critic team for ongoing support. y'all ate and left no crumbs π«Άβ¨
π COPYRIGHT π
Copyright 2006-2021 Andy Lester.
This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0.
π POD ERRORS π
Hey! The above document had some coding errors, which are explained below:
Around line 124:
Non-ASCII character seen before =encoding in 'SkyttΓ€,'. Assuming
UTF-8
ngl she's a lil broken but she's doing her best, and honestly? same π
and that's a wrap bestie π this was perl v5.42.0, dated 2025-07-25, from the Perl::C...c::Bangs(3) page under User Contributed Perl Documentation. slay, go write some clean Perl πΈπ¦β¨
π¦ where this page comes from
- fedora 43: perl-Perl-Critic-Bangs 1.14-3.fc43 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms