CPAN::Critic::Module::Abstract - (DEPRECATED) Critic CPAN module abstract
This document describes version 0.092 of CPAN::Critic::Module::Abstract (from Perl distribution CPAN-Critic-Module-Abstract), released on 2019-07-03.
% critic-cpan-module-abstract 'Perl extension for blah blah blah' # customize profile (add/remove policies, modify severities, ...) # TODO
STATUS: This module is deprecated in favor of Module::Abstract::Cwalitee.
This is a proof-of-concept module to critic CPAN module abstract.
Dist::Zilla plugin coming shortly.
Usage:
critique_cpan_module_abstract(%args) -> [status, msg, payload, meta]
Critic CPAN module abstract.
This function is not exported by default, but exportable.
Arguments ('*' denotes required arguments):
abstract* => str
profile => str (default: "default")
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (payload) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
policy_prohibit_empty(%args) -> [status, msg, payload, meta]
This function is not exported.
stash => hash
policy_prohibit_ends_with_full_stop(%args) -> [status, msg, payload, meta]
policy_prohibit_just_module_name(%args) -> [status, msg, payload, meta]
policy_prohibit_multiline(%args) -> [status, msg, payload, meta]
policy_prohibit_redundancy(%args) -> [status, msg, payload, meta]
policy_prohibit_shouting(%args) -> [status, msg, payload, meta]
policy_prohibit_starts_with_lowercase_letter(%args) -> [status, msg, payload, meta]
policy_prohibit_template(%args) -> [status, msg, payload, meta]
policy_prohibit_too_long(%args) -> [status, msg, payload, meta]
max_len => int (default: 72)
policy_prohibit_too_short(%args) -> [status, msg, payload, meta]
min_len => int (default: 3)
policy_require_english(%args) -> [status, msg, payload, meta]
Please visit the project's homepage at https://metacpan.org/release/CPAN-Critic-Module-Abstract.
Source repository is at https://github.com/perlancar/perl-CPAN-Critic-Module-Abstract.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=CPAN-Critic-Module-Abstract
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
perlancar <perlancar@cpan.org>
This software is copyright (c) 2019, 2017, 2015, 2014, 2012 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install CPAN::Critic::Module::Abstract, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CPAN::Critic::Module::Abstract
CPAN shell
perl -MCPAN -e shell install CPAN::Critic::Module::Abstract
For more information on module installation, please visit the detailed CPAN module installation guide.