line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
use strict; |
3
|
1
|
|
|
1
|
|
28637
|
use warnings; |
|
1
|
|
|
|
|
8
|
|
|
1
|
|
|
|
|
25
|
|
4
|
1
|
|
|
1
|
|
4
|
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
22
|
|
5
|
|
|
|
|
|
|
use Moo; |
6
|
1
|
|
|
1
|
|
447
|
|
|
1
|
|
|
|
|
10344
|
|
|
1
|
|
|
|
|
3
|
|
7
|
|
|
|
|
|
|
extends 'Code::TidyAll::CacheModel'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.82'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
my $self = shift; |
12
|
|
|
|
|
|
|
return $self->_sig( |
13
|
12
|
|
|
12
|
|
93
|
[ |
14
|
12
|
|
|
|
|
33
|
$self->SUPER::_build_cache_key, |
15
|
|
|
|
|
|
|
$self->file_contents |
16
|
|
|
|
|
|
|
] |
17
|
|
|
|
|
|
|
); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
return 1; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
8
|
|
|
8
|
|
300
|
return; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
0
|
|
|
0
|
1
|
|
|
28
|
|
|
|
|
|
|
# ABSTRACT: Shared cache model for Code::TidyAll |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=pod |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=encoding UTF-8 |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 NAME |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Code::TidyAll::CacheModel::Shared - Shared cache model for Code::TidyAll |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 VERSION |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
version 0.82 |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 SYNOPSIS |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
my $cta = Code::TidyAll->new( |
46
|
|
|
|
|
|
|
cache_model_class => 'Code::TidyAll::CacheModel::Shared', |
47
|
|
|
|
|
|
|
... |
48
|
|
|
|
|
|
|
); |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 DESCRIPTION |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
An alternative caching model for Code::TidyAll designed to work in shared build |
53
|
|
|
|
|
|
|
systems / systems with lots of branches. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
This cache model uses both the file name and file contents to build the cache |
56
|
|
|
|
|
|
|
key and a meaningless cache value. It does not care about the modification time |
57
|
|
|
|
|
|
|
of the file. |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
This allows you to share a cache when you might have several versions of a file |
60
|
|
|
|
|
|
|
that you switch backwards and forwards between (e.g. when you're working on |
61
|
|
|
|
|
|
|
several branches) and keep the cache values |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 SUPPORT |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Bugs may be submitted at L<https://github.com/houseabsolute/perl-code-tidyall/issues>. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 SOURCE |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
The source code repository for Code-TidyAll can be found at L<https://github.com/houseabsolute/perl-code-tidyall>. |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 AUTHORS |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=over 4 |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=item * |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
Jonathan Swartz <swartz@pobox.com> |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=item * |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
Dave Rolsky <autarch@urth.org> |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=back |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
This software is copyright (c) 2011 - 2022 by Jonathan Swartz. |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
90
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
The full text of the license can be found in the |
93
|
|
|
|
|
|
|
F<LICENSE> file included with this distribution. |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=cut |