The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Perl::Critic::Policy::Mardem::ProhibitLargeFile - large files as line count

DESCRIPTION

This Policy counts the lines within a Perl-File (more precise the PPI::Document's)

CONFIGURATION

The maximum acceptable lines can be set with the line_count_limit configuration item. Any file (or given string) with higher line count will generate a policy violation. The default is 999.

An example section for a .perlcriticrc:

  [Mardem::ProhibitLargeFile]
  line_count_limit = 1

AFFILIATION

This policy is part of Perl::Critic::Mardem.

AUTHOR

Markus Demml, mardem@cpan.com

LICENSE AND COPYRIGHT

Copyright (c) 2024, Markus Demml

This library is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. The full text of this license can be found in the LICENSE file included with this module.