Perl::...ewlines(3pm)

πŸŽ€ NAME πŸŽ€

okay bestie, welcome to Perl::...ewlines(3pm) β€” from the User Contributed Perl Documentation β€” and this is the page for Perl::Critic::Policy::CodeLayout::RequireConsistentNewlines. The whole vibe is literally: Use the same newline through the source. periodt. πŸ’…

πŸ’– AFFILIATION πŸ’–

This Policy is part of the core Perl::Critic distribution. slay, it's core.

🌸 DESCRIPTION 🌸

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. no cap, that's the whole warning: keep your line endings consistent, bestie. ✨

πŸ¦‹ CAVEAT πŸ¦‹

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. lowkey important: no filename, no vibe check. 😭

πŸŽ€ CONFIGURATION πŸŽ€

This Policy is not configurable except for the standard options. that's it. no secret extra knobs. πŸ™ˆ

πŸ‘‘ AUTHOR πŸ‘‘

Chris Dolan <cdolan@cpan.org> β€” iconic.

Copyright (c) 2006-2011 Chris Dolan.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

okay bye bestie πŸ’– β€” footer vibes: perl v5.42.0, dated 2024-10-23, and the manual name is Perl::...ewlines(3pm) 🫢

πŸ“¦ where this page comes from