Perl::C...c::Bangs(3)

πŸ“¦
version 1.14 Β· 2 versions
, in fedora 43

✨ 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 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