Perl::...Markup(3pm)
π Perl::Critic::Policy::Documentation::RequireFilenameMarkup π
okay bestie, so this is one of those User Contributed Perl Documentation pages, and the star of the show is Perl::...Markup(3pm) β a lil policy module that wants you to markup your /foo filenames. yes really. she's bossy but she's right. π
β¨ NAME β¨
Perl::Critic::Policy::Documentation::RequireFilenameMarkup β markup /foo filenames π¦
πΈ DESCRIPTION πΈ
So this policy is part of the Perl::Critic::Pulp add-on (iykyk). What she does is ask you β politely but firmly β to use F<> or other markup on your filenames. periodt.
/usr/bin # bad
F</usr/bin> # ok
C</bin/sh> # ok
The way that F<> works is it lets the formatters show filenames in a usual way, such as italics in man pages. Lowkey this helps human readability, but ngl it's a minor matter, and on that basis this policy is lowest severity and lives under the "cosmetic" theme (see "POLICY THEMES" in Perl::Critic). so like. don't stress, bestie π
Filenames in text are identified by likely forms. Currently, words starting as follows are considered filenames β with /usr and /etc being the most common:
/bin
/dev
/etc
/opt # some proprietary Unix
/proc
/tmp
/usr
/var
C:\ # MS-DOS
Any markup on a filename satisfies this policy, fr fr. F<> is the usual one, but C<> might suit for instance C</bin/sh> to show it's a command with path rather than a file as such. iconic behavior honestly.
"=begin :foo" blocks with <:> POD type are checked since they can have markup. "Verbatim" paragraphs are ignored since of course they cannot have markup. no cap. π
π Disabling π
If you genuinely don't care about filename markup (valid, live your truth), you can disable RequireFilenameMarkup from your .perlcriticrc in the usual way (see "CONFIGURATION" in Perl::Critic):
[-Documentation::RequireFilenameMarkup]
π₯ SEE ALSO π₯
Perl::Critic::PulpPerl::Critic
π HOME PAGE π
<http://user42.tuxfamily.org/perl-critic-pulp/index.html>
π COPYRIGHT π
Copyright 2013, 2014, 2015, 2016, 2017, 2019, 2021 Kevin Ryde
Perl-Critic-Pulp is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
Perl-Critic-Pulp is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Perl-Critic-Pulp. If not, see <http://www.gnu.org/licenses/>.
okay so that's the whole thing, you ate that π and as a lil sign-off: this whole page is served up by perl v5.40.1, dated 2025-10-21, and the manpage title is Perl::...Markup(3pm). slay, bestie π«Άβ¨πΈ
π¦ where this page comes from
- ubuntu resolute: libperl-critic-pulp-perl 100-1 Β· GPL-3.0-or-later
- ubuntu stonking: libperl-critic-pulp-perl 100-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms