Perl::...stants(3pm)
π NAME π
okay so this page is Perl::...stants(3pm) (User Contributed Perl Documentation), and it is all about Perl::Critic::Utils::Constants β global constants, bestie. That is the whole name situation. π
πΈ DESCRIPTION πΈ
It defines the commonly used constants for Perl::Critic. No cap, that is the description. β¨
π¦ INTERFACE SUPPORT π¦
This is considered to be a public module. Any changes to its interface will go through a deprecation cycle. So yes, it is public and the interface gets the whole deprecation-cycle glow-up if it ever changes. π
β¨ IMPORTABLE CONSTANTS β¨
okay bestie, here is the snack bar of constants you can import:
$PROFILE_STRICTNESS_WARN$PROFILE_STRICTNESS_FATAL$PROFILE_STRICTNESS_QUIET$PROFILE_STRICTNESS_DEFAULT%PROFILE_STRICTNESSESβ valid values for the-profile-strictnessin perlcritic option. It determines whether recoverable problems found in a profile file appear as warnings, are fatal, or are ignored.$PROFILE_STRICTNESS_DEFAULTis set to$PROFILE_STRICTNESS_WARN. Importable via the:profile_strictnesstag.
Then the color severity defaults, serving looks and defaults:
$PROFILE_COLOR_SEVERITY_HIGHEST_DEFAULTβ default for the-color-severity-highestoption. Importable via the:color_severitytag.$PROFILE_COLOR_SEVERITY_HIGH_DEFAULTβ default for the-color-severity-highoption. Importable via the:color_severitytag.$PROFILE_COLOR_SEVERITY_MEDIUM_DEFAULTβ default for the-color-severity-mediumoption. Importable via the:color_severitytag.$PROFILE_COLOR_SEVERITY_LOW_DEFAULTβ default for the-color-severity-lowoption. Importable via the:color_severitytag.$PROFILE_COLOR_SEVERITY_LOWEST_DEFAULTβ default for the-color-severity-lowestoption. Importable via the:color_severitytag.
And the module-list constants:
@STRICT_EQUIVALENT_MODULES@WARNINGS_EQUIVALENT_MODULESβ as the names suggest, these are lists of modules that are equivalent to applying thestrictorwarningspragma when loaded. At the moment, both lists are exactly the same. Note: These lists are not exhaustive; they only include the most commonly used modules. Policies that use these lists should permit configuration of additional modules.
π«Ά AUTHOR π«Ά
Shoutout to Elliot Shank <perl@galumph.com> β iconic. π
π COPYRIGHT π
Copyright (c) 2007-2011 Elliot Shank.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license can be found in the LICENSE file included with this module. π
that is the whole page, bestie. Source/version: perl v5.42.0 Β· date: 2024-10-23 Β· page: Perl::...stants(3pm) β¨π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Perl-Critic 1.156.0-bp160.1.1 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms