File Coverage

blib/lib/Perl/Critic/PJCJ.pm
Criterion Covered Total %
statement 8 8 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 11 11 100.0


line stmt bran cond sub pod time code
1             package Perl::Critic::PJCJ v0.2.4;
2              
3 1     1   185583 use v5.26.0;
  1         3  
4 1     1   3 use strict;
  1         2  
  1         23  
5 1     1   4 use warnings;
  1         1  
  1         69  
6              
7             "
8             How could you leave me
9             When I needed to possess you?
10             I hated you, I loved you, too
11             "
12              
13             __END__
14              
15             =pod
16              
17             =head1 NAME
18              
19             Perl::Critic::PJCJ - Perl::Critic policies for code style consistency
20              
21             =head1 VERSION
22              
23             version v0.2.4
24              
25             =head1 SYNOPSIS
26              
27             # In your .perlcriticrc file:
28             include = Perl::Critic::PJCJ
29              
30             # Or from the command line:
31             perlcritic --include Perl::Critic::PJCJ lib/
32              
33             =head1 DESCRIPTION
34              
35             This distribution provides Perl::Critic policies for enforcing consistent coding
36             practices in Perl code, including string quoting consistency and line length
37             limits.
38              
39             =head1 POLICIES
40              
41             =over 4
42              
43             =item L<Perl::Critic::Policy::ValuesAndExpressions::RequireConsistentQuoting>
44              
45             Enforces consistent and optimal quoting practices through three simple rules:
46             reduce punctuation, prefer interpolated strings, and use bracket delimiters in
47             preference order.
48              
49             =item L<Perl::Critic::Policy::CodeLayout::ProhibitLongLines>
50              
51             Enforces a configurable maximum line length to improve code readability. Lines
52             that exceed the specified limit (default: 80 characters) are flagged as
53             violations. This helps maintain consistent formatting and readability across
54             different display contexts.
55              
56             =back
57              
58             =head1 AUTHOR
59              
60             Paul Johnson C<< <paul@pjcj.net> >>
61              
62             =head1 COPYRIGHT
63              
64             Copyright 2025 Paul Johnson.
65              
66             =head1 LICENCE
67              
68             This program is free software; you can redistribute it and/or modify it under
69             the same terms as Perl itself.
70              
71             =cut