App-DBCritic
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/App/DBCritic/PolicyType/ResultSource.pm view on Meta::CPAN
package App::DBCritic::PolicyType::ResultSource;
# ABSTRACT: Role for ResultSource critic policies
#pod =head1 SYNOPSIS
#pod
#pod package App::DBCritic::Policy::MyResultSourcePolicy;
#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::ResultSource';
#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<ResultSource|DBIx::Class::ResultSource>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::ResultSource - Role for ResultSource critic policies
=head1 VERSION
version 0.023
=head1 SYNOPSIS
package App::DBCritic::Policy::MyResultSourcePolicy;
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::ResultSource';
=head1 DESCRIPTION
This is a role composed into L<App::DBCritic|App::DBCritic> policy classes
that are interested in L<ResultSource|DBIx::Class::ResultSource>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::ResultSource
=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 distributionview release on metacpan - search on metacpan
( run in 3.433 seconds using v1.00-cache-2.02-grep-82fe00e-cpan-72ae3ad1e6da )