Data::FormValidator::Constraints::Business::DK::FI - constraint for Danish FI
The documentation describes version 0.09 of Data::FormValidator::Constraints::Business::DK::FI
use Data::FormValidator; use Data::FormValidator::Constraints::Business::DK::FI qw(valid_fi); my $dfv_profile = { required => [qw(fi)], constraint_methods => { fi => valid_fi(), } }; my $dfv_profile = { required => [qw(fi)], constraint_methods => { fi => valid_fi(), }, untaint_all_constraints => 1, };
This module exposes a set of subroutines which are compatible with Data::FormValidator. The module implements contraints as specified in Data::FormValidator::Constraints.
Checks whether a FI number is valid (see: SYNOPSIS) and Business::DK::FI.
Untaints a given FI number (see: SYNOPSIS and BUGS AND LIMITATIONS).
Data::FormValidator::Constraints::Business::DK::FI exports on request:
"valid_dk_fi"
"match_valid_fi"
Please refer to Data::FormValidator for documentation
This module requires no special configuration or environment to run.
It is intended to integrate with Data::FormValidator profiles in general.
Data::FormValidator
Business::DK::FI
Scalar::Util
Carp
The module has no known incompatibilities.
The tests seem to reflect that untainting takes place, but the "match_valid_fi" is not called at all, so how this untaiting is expected integrated into Data::FormValidator is still not settled (SEE: "TODO").
The module is generally well tested, apart for the untainting facility implemented in: "match_valid_fi", please see "BUGS AND LIMITATIONS" and "TODO".
---------------------------- ------ ------ ------ ------ ------ ------ ------ File stmt bran cond sub pod time total ---------------------------- ------ ------ ------ ------ ------ ------ ------ blib/lib/Business/DK/FI.pm 100.0 100.0 n/a 100.0 100.0 35.1 100.0 ...b/Class/Business/DK/FI.pm 100.0 100.0 66.7 100.0 100.0 64.9 98.4 Total 100.0 100.0 66.7 100.0 100.0 100.0 99.3 ---------------------------- ------ ------ ------ ------ ------ ------ ------
This is a plugin for Data::FormValidator it follows the de facto standard of code layout and naming used in other Data::FormValidator plugins and meets requirements defined by Data::FormValidator.
The code passes Perl::Critic tests at severity 1 (brutal) with a set of policies disabled. please see t/perlcriticrc and the list below:
Perl::Critic::Policy::ValuesAndExpressions::ProhibitConstantPragma
Perl::Critic::Policy::Documentation::RequirePodLinksIncludeText
Are enabled using the environment variable:
TEST_CRITIC
Please see the documentation in: t/critic.t.
TEST_POD
TEST_AUTHOR
Please report issues via CPAN RT:
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Business-DK-FI
or by sending mail to
<bug-Business-DK-FI@rt.cpan.org>
Get the untaint functionality tested thoroughly, that would bring the coverage to 100%, the "match_valid_fi" does not seem to be run. This patterns is however an issue for all of the logicLAB Business::DK::* distributions.
Comply with Data::FormValidator, especially for untainting. This is an issue for all of the logicLAB Business::DK::* distributions.
Please see the distribution TODO file also and the distribution road map at: http://logiclab.jira.com/browse/BDKFI#selectedTab=com.atlassian.jira.plugin.system.project%3Aroadmap-panel
Data::FormValidator::Constraints
Data::FormValidator::Result
Business::DK::CVR
Business::DK::CPR
Business::DK::PO
Business::DK::Postalcode
Business::DK::Phonenumber
Jonas B. Nielsen, (jonasbn) - <jonasbn@cpan.org>
<jonasbn@cpan.org>
Business-DK-FI and related is (C) by Jonas B. Nielsen, (jonasbn) 2009-2016
Business-DK-FI and related is released under the Artistic License 2.0
See the included license file for details
To install Business::DK::FI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::DK::FI
CPAN shell
perl -MCPAN -e shell install Business::DK::FI
For more information on module installation, please visit the detailed CPAN module installation guide.