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::ProhibitFileSize - large files as byte or char count

DESCRIPTION

This Policy checks the Perl-File Size in Bytes or the Content-Length (string) if no file given. (more precise the PPI::Document's)

CONFIGURATION

The maximum acceptable size can be set with the size_count_limit configuration item. Any file (or given string) with higher size "count" will generate a policy violation. The default is 102400.

An example section for a .perlcriticrc:

  [Mardem::ProhibitFileSize]
  size_count_limit = 65536

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.