The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

App::CPANChangesCwaliteeUtils - CLI Utilities related to CPAN Changes cwalitee

VERSION

This document describes version 0.007 of App::CPANChangesCwaliteeUtils (from Perl distribution App-CPANChangesCwaliteeUtils), released on 2021-05-26.

DESCRIPTION

This distribution includes the following utilities:

FUNCTIONS

calc_cpan_changes_cwalitee

Usage:

 calc_cpan_changes_cwalitee(%args) -> [$status_code, $reason, $payload, \%result_meta]

Calculate CPAN Changes cwalitee.

Examples:

  • Run against the the Changes of App-CPANChangesCwaliteeUtils distribution:

     calc_cpan_changes_cwalitee();

    Result:

     [
       200,
       "OK",
       [
         {
           indicator => "not_too_wide",
           num => 1,
           result => 1,
           result_summary => "",
           severity => 3,
         },
         {
           indicator => "parsable",
           num => 2,
           result => 1,
           result_summary => "",
           severity => 3,
         },
         {
           indicator => "date_correct_format",
           num => 3,
           result => 1,
           result_summary => "",
           severity => 3,
         },
         {
           indicator => "date_parsable",
           num => 4,
           result => 1,
           result_summary => "",
           severity => 3,
         },
         {
           indicator => "english",
           num => 5,
           result => 1,
           result_summary => "",
           severity => 3,
         },
         {
           indicator => "has_releases",
           num => 6,
           result => 1,
           result_summary => "",
           severity => 3,
         },
         {
           indicator => "no_duplicate_version",
           num => 7,
           result => 1,
           result_summary => "",
           severity => 3,
         },
         {
           indicator => "no_empty_group",
           num => 8,
           result => 1,
           result_summary => "",
           severity => 3,
         },
         {
           indicator => "no_shouting",
           num => 9,
           result => 1,
           result_summary => "",
           severity => 3,
         },
         {
           indicator => "no_useless_text",
           num => 10,
           result => 1,
           result_summary => "",
           severity => 3,
         },
         {
           indicator => "preamble_has_no_releases",
           num => 11,
           result => 1,
           result_summary => "",
           severity => 3,
         },
         {
           indicator => "release_dates_not_future",
           num => 12,
           result => 0,
           result_summary => "Release date '2021-05-27' (2021-05-27) is in the future",
           severity => 3,
         },
         {
           indicator => "releases_in_descending_date_order",
           num => 13,
           result => 1,
           result_summary => "",
           severity => 3,
         },
         { indicator => "Score", result => 92.31, result_summary => "12 out of 13" },
       ],
       {},
     ]

This function is not exported.

Arguments ('*' denotes required arguments):

  • exclude_indicator => array[str]

    Do not use these indicators.

  • exclude_indicator_module => array[perl::modname]

    Do not use indicators from these modules.

  • exclude_indicator_status => array[str]

    Do not use indicators having these statuses.

  • include_indicator => array[str]

    Only use these indicators.

  • include_indicator_module => array[perl::modname]

    Only use indicators from these modules.

  • include_indicator_status => array[str] (default: ["stable"])

    Only use indicators having these statuses.

  • min_indicator_severity => uint (default: 1)

    Minimum indicator severity.

  • path => pathname

Returns an enveloped result (an array).

First element ($status_code) is an integer containing HTTP-like status code (200 means OK, 4xx caller error, 5xx function error). Second element ($reason) is a string containing error message, or something like "OK" if status is 200. Third element ($payload) is the actual result, but usually not present when enveloped result is an error response ($status_code is not 2xx). Fourth element (%result_meta) is called result metadata and is optional, a hash that contains extra information, much like how HTTP response headers provide additional metadata.

Return value: (any)

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/App-CPANChangesCwaliteeUtils.

SOURCE

Source repository is at https://github.com/perlancar/perl-App-CPANChangesCwaliteeUtils.

BUGS

Please report any bugs or feature requests on the bugtracker website https://github.com/perlancar/perl-App-CPANChangesCwaliteeUtils/issues

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.

SEE ALSO

CPAN::Changes::Cwalitee

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2021, 2019 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.