28 Jul 2014 19:26:56 UTC
- Distribution: Perl-Critic-Tics
- Module version: 0.009
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- Issues (1)
- Testers (1299 / 0 / 0)
- KwaliteeBus factor: 1
- 89.66% Coverage
- License: perl_5
- Activity24 month
- Download (17.42KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionRJBS Ricardo SIGNES 😄
Perl::Critic::Policy::Tics::ProhibitManyArrows - (this => is => not => good)
You are not clever if you do this:
my %hash = (key1=>value1=>key2=>value2=>key3=>'value3');
You are even more not clever if you do this:
my %hash = (key1=>value1=>key2=>value2=>key3=>value3=>);
There is one parameter for this policy, max_allowed, which specifies the maximum number of fat arrows that may appear as item separators. The default is two. If you really hate the fat arrow, and never want to see it, you can set max_allowed to zero and make any occurance of
Here are some examples of code that would fail with various max_allowed values:
max_allowed failing code 0 (foo => bar) 1 (foo => bar => baz) 2 (foo => bar => baz => quux)
Ricardo SIGNES <firstname.lastname@example.org>
This software is copyright (c) 2007 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Perl::Critic::Tics, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Perl::Critic::Tics
For more information on module installation, please visit the detailed CPAN module installation guide.