Login
Added my first new policy in a very long time. So I might be a bit
authorJeffrey Ryan Thalhammer <jeff@imaginative-software.com>
Wed, 23 Jul 2008 04:14:28 +0000 (04:14 +0000)
committerJeffrey Ryan Thalhammer <jeff@imaginative-software.com>
Wed, 23 Jul 2008 04:14:28 +0000 (04:14 +0000)
commit57aab07779320cefa609230a177d06a97328e305
tree714802b9633fad5b22b402f82ba45245d0ee5985
parent3cc67b793197f322f752587477b875feba0633d5
Added my first new policy in a very long time.  So I might be a bit
rusty here...

This is a partial implementation of the RequireConstantBeforeOperator
policy mentioned in the TODO list.  For now, it only applies to the
'==' and 'eq' operators.  But if you guys think it should be extended
to all other comparison operators, then I can do that.
Changes
lib/Perl/Critic/Policy/ValuesAndExpressions/RequireConstantOnLeftSideOfEquality.pm [new file with mode: 0644]
t/03_pragmas.t
t/ValuesAndExpressions/RequireConstantOnLeftSideOfEquality.run [new file with mode: 0644]