29 Oct 2013 16:43:05 UTC
- Distribution: Perl-Critic-More
- Module version: 1.003
- Source (raw)
- Browse (raw)
- How to Contribute
- Clone repository
- Issues (7)
- Testers (1807 / 153 / 0)
- KwaliteeBus factor: 2
- 95.18% Coverage
- License: perl_5
- Activity24 month
- Download (34.25KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
Perl::Critic::Policy::ValuesAndExpressions::RestrictLongStrings - Stop mixing long strings with code.
Long text strings in the middle of code is very distracting and wreaks havoc on code formatting. Consider putting long strings in external data files,
__DATA__sections, or in their own subroutines.
This policy complains if a long string is not the last line of a subroutine. "Long" is defined as 78 characters by default. This value can be altered in your Perl::Critic configuration via the
max_lengthproperty. For example, you may add the following to your .perlcriticrc file:
[ValuesAndExpressions::RestrictLongStrings] max_length = 50
Add option to allow long strings that don't include newlines.
Chris Dolan <firstname.lastname@example.org>
Copyright (c) 2006-2008 Chris Dolan
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license can be found in the LICENSE file included with this module.
Module Install Instructions
To install Perl::Critic::More, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Perl::Critic::More
For more information on module installation, please visit the detailed CPAN module installation guide.