perl::critic::policy::codelayout::requiretidycode(3) [centos man page]
Perl::Critic::Policy::CodeLayout::RequireTidyCode(3) User Contributed Perl Documentation Perl::Critic::Policy::CodeLayout::RequireTidyCode(3)NAME
Perl::Critic::Policy::CodeLayout::RequireTidyCode - Must run code through perltidy.
AFFILIATION
This Policy is part of the core Perl::Critic distribution.
DESCRIPTION
Conway does make specific recommendations for whitespace and curly-braces in your code, but the most important thing is to adopt a
consistent layout, regardless of the specifics. And the easiest way to do that is to use Perl::Tidy. This policy will complain if you're
code hasn't been run through Perl::Tidy.
CONFIGURATION
This policy can be configured to tell Perl::Tidy to use a particular perltidyrc file or no configuration at all. By default, Perl::Tidy is
told to look in its default location for configuration. Perl::Critic can be told to tell Perl::Tidy to use a specific configuration file
by putting an entry in a .perlcriticrc file like this:
[CodeLayout::RequireTidyCode]
perltidyrc = /usr/share/perltidy.conf
As a special case, setting "perltidyrc" to the empty string tells Perl::Tidy not to load any configuration file at all and just use
Perl::Tidy's own default style.
[CodeLayout::RequireTidyCode]
perltidyrc =
SEE ALSO
Perl::Tidy
AUTHOR
Jeffrey Ryan Thalhammer <jeff@imaginative-software.com>
COPYRIGHT
Copyright (c) 2005-2011 Imaginative Software Systems. All rights reserved.
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.
perl v5.16.3 2014-06-09 Perl::Critic::Policy::CodeLayout::RequireTidyCode(3)
Check Out this Related Man Page
Perl::Critic::Policy::CodeLayout::RequireTrailingCommas(User Contributed Perl DocumentPerl::Critic::Policy::CodeLayout::RequireTrailingCommas(3pm)NAME
Perl::Critic::Policy::CodeLayout::RequireTrailingCommas - Put a comma at the end of every multi-line list declaration, including the last
one.
AFFILIATION
This Policy is part of the core Perl::Critic distribution.
DESCRIPTION
Conway suggests that all elements in a multi-line list should be separated by commas, including the last element. This makes it a little
easier to re-order the list by cutting and pasting.
my @list = ($foo,
$bar,
$baz); #not ok
my @list = ($foo,
$bar,
$baz,); #ok
CONFIGURATION
This Policy is not configurable except for the standard options.
NOTES
In the PPI parlance, a "list" is almost anything with parentheses. I've tried to make this Policy smart by targeting only "lists" that
have at least one element and are being assigned to something. However, there may be some edge cases that I haven't covered. If you find
one, send me a note.
AUTHOR
Jeffrey Ryan Thalhammer <jeff@imaginative-software.com>
COPYRIGHT
Copyright (c) 2005-2011 Imaginative Software Systems. All rights reserved.
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.
perl v5.14.2 2012-06-07 Perl::Critic::Policy::CodeLayout::RequireTrailingCommas(3pm)
I am looking for a full Perl course on internet (tutorial) to learn everything about Perl. I already know a bunch of programing languages.
I have started Unix interests this year ever since I installed Ubuntu Linux on my PC AND I also got a job at IBM doing software distributions with... (1 Reply)
What do u do here?my cousin told me to check this out but im not sure what im doing :confused: :( camron if your on please help me!!!!!!!!!!!!!!! (1 Reply)
I am looking for recommendations on DOD compliante software to wipe disk on HP-UX. Any recommendations would be appreciated. Thank you in advance for any assistance provided. (1 Reply)
Hi Guys,
I am looking for a terminal emulation software to work on some Unix servers, I was told that Reflections works good, I am using Putty now, but I was told Reflections has the option to run some jobs on Macros (not scripts) is this right?
also is this freeware?
if not freeware, any one... (2 Replies)
Hi, I'm searching website where there is software for HP-UX operating system in free download because I must install Perl, Make and Gmake on HP-UX server. Have you goods URL for me ?
Thank you very much!
bye
Staaan (2 Replies)
hi, i am a really new to Perl. i have a following code that is working well.
"
i know this is really simple, but i cant figure out a way to do this. can someone help me please?:( (1 Reply)
Hello guys, this is my first post here.
Before I reformated my Time Machine Backups drive, I copied several thousands of files to another drive.
After using "Tidy Up!" I constantly had errors telling me I didn't have enough privileges to erase duplicate files. I tried everything I could.
Using... (4 Replies)
Hi all,
I've written a Perl script below that check and report for malformed braces. I have a UNIX ksh version and it took a couple of minutes to run on a 10000+ lines. With the Perl version it only took about 20 seconds so that is enough incentive for me to go Perl not to mention that I need... (1 Reply)
Well, I found myself trying to fix some Perl code (Ive never done any Perl in my life) and I pinpointed the place where the bug could be. But to be sure I have to know what does a few line of code mean:
$files_lim =~ (/^\d*$/)
$files_lim =~ (/^\d*h$/)
$files_age =~ s/h//
The code where... (2 Replies)
Hello
I am on my way to improve my wonderful Perl skills, I got an issue which I want to share with you all. I have a Perl module which looks like
package Cocoa;
require Exporter;
@ISA = qw(Exporter);
my $a='';
my $b='';
my $c='';
sub new {
my $this = shift; # Create... (8 Replies)
I would like to use Perl in 'interactive' mode (kind off), starting it by
> perl -d -e 0;
But I need to have some function be read on loading.
Also, it should not be for anyone who starting Perl or use it any how.
I did try to search, but not much result.
I have try a file '.perldb':... (1 Reply)