Perl::Critic::Policy::CodeLayout::RequireConsistentNewlines - Use the same newline through the source.


Perl-Critic documentation  | view source Contained in the Perl-Critic distribution.

Index


NAME

Top

Perl::Critic::Policy::CodeLayout::RequireConsistentNewlines - Use the same newline through the source.

AFFILIATION

Top

This Policy is part of the core Perl::Critic distribution.

DESCRIPTION

Top

Source code files are divided into lines with line endings of \r, \n or \r\n. Mixing these different line endings causes problems in many text editors and, notably, Module::Signature and GnuPG.

CAVEAT

Top

This policy works outside of PPI because PPI automatically normalizes source code to local newline conventions. So, this will only work if we know the filename of the source code.

CONFIGURATION

Top

This Policy is not configurable except for the standard options.

AUTHOR

Top

Chris Dolan <cdolan@cpan.org>

COPYRIGHT

Top


Perl-Critic documentation  | view source Contained in the Perl-Critic distribution.