Validator.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Validator/Utils.pm ↑ Summary Validator/Const.pm »
1 package MARC::Validator;
2  
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 ▶use Module::Pluggable require => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 3 our $VERSION = 0.24;
9  
10 3 1;
11  
12 __END__
13  
14 =encoding utf8
15  
16 =head1 NAME
17  
18 MARC::Validator - Set of plugins for MARC validation.
19  
20 =head1 SYNOPSIS
21  
22 use MARC::Validator;
23  
24 my @plugins = MARC::Validator->plugins;
25  
26 =head1 METHODS
27  
28 =head2 C<plugins>
29  
30 my @plugins = MARC::Validator->plugins;
31  
32 Get list of present plugins.
33  
34 Returns list of plugin module name strings.
35  
36 =head1 EXAMPLES
37  
38 =head2 EXAMPLE
39  
40 =for comment filename=plugins_list.pl
41  
42 use strict;
43 use warnings;
44  
45 use MARC::Validator;
46  
47 my @plugins = MARC::Validator->plugins;
48  
49 if (@plugins) {
50 print "List of plugins:\n";
51 foreach my $plugin (@plugins) {
52 print "- $plugin\n";
53 }
54 } else {
55 print "No plugins.\n";
56 }
57  
58 # Output like:
59 # List of plugins:
60 # - MARC::Validator::Plugin::Field008
61 # - MARC::Validator::Plugin::Field020
62 # - MARC::Validator::Plugin::Field035
63 # - MARC::Validator::Plugin::Field040
64 # - MARC::Validator::Plugin::Field045
65 # - MARC::Validator::Plugin::Field080
66 # - MARC::Validator::Plugin::Field260
67 # - MARC::Validator::Plugin::Field264
68 # - MARC::Validator::Plugin::Field300
69 # - MARC::Validator::Plugin::Field500
70 # - MARC::Validator::Plugin::Field504
71 # - MARC::Validator::Plugin::Field655
72  
73 =head1 DEPENDENCIES
74  
75 L<Module::Pluggable>.
76  
77 =head1 REPOSITORY
78  
79 L<https://github.com/michal-josef-spacek/MARC-Validator>
80  
81 =head1 AUTHOR
82  
83 Michal Josef Špaček L<mailto:skim@cpan.org>
84  
85 L<http://skim.cz>
86  
87 =head1 LICENSE AND COPYRIGHT
88  
89 © 2025-2026 Michal Josef Špaček
90  
91 BSD 2-Clause License
92  
93 =head1 ACKNOWLEDGEMENTS
94  
95 Development of this software has been made possible by institutional support
96 for the long-term strategic development of the National Library of the Czech
97 Republic as a research organization provided by the Ministry of Culture of
98 the Czech Republic (DKRVO 2024–2028), Area 11: Linked Open Data.
99  
100 =head1 VERSION
101  
102 0.24
103  
104 =cut
« Validator/Utils.pm ↑ Summary Validator/Const.pm »