NAME

Test::Legal - Check for copyright notices in distribution files and for LICENSE file

SYNOPSIS

 use Test::Legal;         

 copyright_ok;
 license_ok;

 Or, here is the more refined way to acomplish the same thing
 use Test::Legal  copyright_ok => { base=> $dir, dirs=> [qw/ sctipt lib /] } ,
                  license_ok => { base=> $dir, actions => [qw/ fix /]},
 ;

 # Note,  The  "actions=>['fix']"  automatically tries to fix things before they are tested.

DESCRIPTION

Checks for copyright notices in .pl and .pm distribution files, for author entry in META.yml
or META.json, and for LICENSE file.

You can add the copyright notices manually of use the copyright-injection.pl tool, supplied
with this module, to add, to remove, or to check for notices automatically before tests.

If "fix" mode is requested, some issues are automatically fixed so testing succeeds .
Currently available only for license_ok but not for copyright_ok . See TODO list.

FUNCTIONS

disable_test_builder

_values

_in_fix_mode

Assumptions: $arg exists and has been validated
Input: the user arguments (a hashref)
Output: TRUE if "fix" mode was specified, otherwise FALSE

set_of_files

annotate_dirs

deanntate_dirs

_build_license_ok

EXPORT

copyritht_ok;
legal_ok;

EXPORT_OK

    disable_test_builder 
	annotate_dirs 
    deannotate_dirs

SEE ALSO

copyright_injection.pl  ( provided with Test::Legal )

Test::Copyright

AUTHOR

Tambouras, Ioannis <ioannis@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2011 by Ioannis Tambouras

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.12.1 or, at your option, any later version of Perl 5 you may have available.