Perl::...ricture(3pm)
π Perl::...ricture(3pm) π
okay bestie, pull up a chair, because today we're talking about the Perl::...ricture manual page β user-contributed Perl documentation, the whole thing, and it's lowkey a banger π
β¨ NAME β¨
TooMuchCode::ProhibitExtraStricture β the policy whose whole job is finding unnecessary use strict lines. fr fr, that's it, that's the mission π
πΈ DESCRIPTION πΈ
so like, code stricture is good. nobody's arguing. it's giving responsible adult, it's giving main character energy, we stan π«Ά
BUT β and this is the plot twist β that does not mean you always need to physically write use strict in your code. because several other modules already enable code stricture in the current scope, which is effectively the same thing as having use strict. same vibe, zero extra typing β¨
here's the list of those modules, no cap:
Moose
Mouse
Moo
Mo
Moose::Role
Mouse::Role
Moo::Role
Test2::V0
so when one of these modules is used, use strict is considered redundant, and this policy marks it as a violation. periodt π
π¦ Configuration π¦
ngl, the builtin list of stricture modules is obviously not comprehensive β it's a starter pack, not the whole closet π
you can extend the list by setting the stricture_modules in the config. for example, with the following setting, two modules β Foo and Bar β get appended to the list of stricture modules. iconic behaviour, honestly π
[TooMuchCode::ProhibitExtraStricture]
stricture_modules = Foo Bar
and that's the whole page, bestie!! π this was rendered from perl v5.36.0, dated 2023-10-05, and it lives under the name Perl::...ricture(3pm) in the User Contributed Perl Documentation. go forth and delete those redundant strictures, you absolute legend πβ¨π¦
π¦ where this page comes from
- debian trixie: libperl-critic-toomuchcode-perl 0.19-1 Β· MIT
- ubuntu noble: libperl-critic-toomuchcode-perl 0.19-1 Β· MIT
- ubuntu resolute: libperl-critic-toomuchcode-perl 0.19-1 Β· MIT
- ubuntu stonking: libperl-critic-toomuchcode-perl 0.19-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms