logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Dist::Zilla::Plugin::Prepender - Prepend lines at the top of your perl files

Author

       Jerome Quelin

Description

       This plugin will prepend the specified lines in each Perl module or program within the distribution. For
       scripts having a shebang line, lines will be inserted just after it.

       This is useful to enforce a set of pragmas to your files (since pragmas are lexical, they will be active
       for the whole file), or to add some copyright comments, as the fsf recommends.

       The module accepts the following options in its dist.ini section:

       •   copyright - whether to insert a boilerplate copyright comment.  defaults to true.

       •   line - anything you want to add. may be specified multiple times. no default.

       •   skip - regexp of file names to not prepend to.  may be specified multiple times. no default.

Name

       Dist::Zilla::Plugin::Prepender - Prepend lines at the top of your perl files

See Also

       You can look for information on this module at:

       •   Search CPAN

           <http://search.cpan.org/dist/Dist-Zilla-Plugin-Prepender>

       •   See open / report bugs

           <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Dist-Zilla-Plugin-Prepender>

       •   Mailing-list (same as Dist::Zilla)

           <http://www.listbox.com/subscribe/?list_id=139292>

       •   Git repository

           <http://github.com/jquelin/dist-zilla-plugin-prepender>

       •   AnnoCPAN: Annotated CPAN documentation

           <http://annocpan.org/dist/Dist-Zilla-Plugin-Prepender>

       •   CPAN Ratings

           <http://cpanratings.perl.org/d/Dist-Zilla-Plugin-Prepender>

Synopsis

       In your dist.ini:

           [Prepender]
           copyright = 0
           line = use strict;
           line = use warnings;
           skip = t/data/.+\.pl
           skip = something-else-unnecessary

Version

       version 2.004

See Also