App-DBCritic

 view release on metacpan or  search on metacpan

lib/App/DBCritic/PolicyType/ResultSet.pm  view on Meta::CPAN

package App::DBCritic::PolicyType::ResultSet;

# ABSTRACT: Role for ResultSet critic policies

#pod =head1 SYNOPSIS
#pod
#pod     package App::DBCritic::Policy::MyResultSetPolicy;
#pod     use Moo;
#pod
#pod     has description => ( default => sub{'Follow my policy'} );
#pod     has explanation => ( default => {'My way or the highway'} );
#pod     sub violates { $_[0]->element ne '' }
#pod
#pod     with 'App::DBCritic::PolicyType::ResultSet';
#pod
#pod =head1 DESCRIPTION
#pod
#pod This is a role composed into L<App::DBCritic|App::DBCritic> policy classes
#pod that are interested in L<ResultSet|DBIx::Class::ResultSet>s.  It takes
#pod care of composing the L<App::DBCritic::Policy|App::DBCritic::Policy>
#pod for you.
#pod
#pod =cut

use strict;
use utf8;
use Modern::Perl '2011';    ## no critic (Modules::ProhibitUseQuotedVersion)

our $VERSION = '0.023';     # VERSION
use Moo::Role;
use namespace::autoclean -also => qr{\A _}xms;
with 'App::DBCritic::PolicyType';
1;

__END__

=pod

=encoding UTF-8

=for :stopwords Mark Gardner cpan testmatrix url annocpan anno bugtracker rt cpants
kwalitee diff irc mailto metadata placeholders metacpan

=head1 NAME

App::DBCritic::PolicyType::ResultSet - Role for ResultSet critic policies

=head1 VERSION

version 0.023

=head1 SYNOPSIS

    package App::DBCritic::Policy::MyResultSetPolicy;
    use Moo;

    has description => ( default => sub{'Follow my policy'} );
    has explanation => ( default => {'My way or the highway'} );
    sub violates { $_[0]->element ne '' }

    with 'App::DBCritic::PolicyType::ResultSet';

=head1 DESCRIPTION

This is a role composed into L<App::DBCritic|App::DBCritic> policy classes
that are interested in L<ResultSet|DBIx::Class::ResultSet>s.  It takes
care of composing the L<App::DBCritic::Policy|App::DBCritic::Policy>
for you.

=head1 SUPPORT

=head2 Perldoc

You can find documentation for this module with the perldoc command.

  perldoc App::DBCritic::PolicyType::ResultSet

=head2 Websites

The following websites have more information about this module, and may be of help to you. As always,
in addition to those websites please use your favorite search engine to discover more resources.

=over 4

=item *

Search CPAN

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 0.565 second using v1.00-cache-2.02-grep-82fe00e-cpan-72ae3ad1e6da )