Login
gknop/Perl-Critic.git
12 years agoAdd can_be_disabled() to the trusted method list
Jeffrey Ryan Thalhammer [Sun, 28 Sep 2008 03:10:17 +0000 (03:10 +0000)] 
Add can_be_disabled() to the trusted method list

12 years agoCreated a new Policy to prohibit an unrestricted ## no critic.
Jeffrey Ryan Thalhammer [Sun, 28 Sep 2008 02:32:42 +0000 (02:32 +0000)] 
Created a new Policy to prohibit an unrestricted ## no critic.
I was able to implement this as a policy rather than a
command-line switch by adding a method to the Policy
base class that indicates whether the policy can be disabled.

I can think of a few other applications for this new method,
such as policy that prohibits you from disabling certain other
policies.  For example, shops using Test::Perl::Critic
may wish to prevent unruly developers from locally disabling
some policies that they feel are irrefutable.  I realize
that it isn't very kind, but I've been in situations where I
wished that I could do that.

12 years agoRename is_document_exempt() to prepare_to_scan_document().
Elliot Shank [Sat, 27 Sep 2008 20:24:21 +0000 (20:24 +0000)] 
Rename is_document_exempt() to prepare_to_scan_document().

12 years agoUpdate autodie support to v1.994.
Elliot Shank [Sat, 27 Sep 2008 04:24:10 +0000 (04:24 +0000)] 
Update autodie support to v1.994.

12 years agoChange ppidump to emit element locations.
Elliot Shank [Sat, 27 Sep 2008 02:29:54 +0000 (02:29 +0000)] 
Change ppidump to emit element locations.

12 years agoAdd TODO to enable removing "## no critic" markers.
Elliot Shank [Thu, 25 Sep 2008 01:52:08 +0000 (01:52 +0000)] 
Add TODO to enable removing "## no critic" markers.

12 years agoFix date prototype at the top of Changes. Yeah, it annoyed me. :]
Elliot Shank [Wed, 17 Sep 2008 12:37:58 +0000 (12:37 +0000)] 
Fix date prototype at the top of Changes.  Yeah, it annoyed me.  :]

12 years agoPut caveat about autodie support into Changes.
Elliot Shank [Wed, 17 Sep 2008 12:32:07 +0000 (12:32 +0000)] 
Put caveat about autodie support into Changes.

12 years agoAdd autodie support to the InputOutput::RequireChecked* policies.
Elliot Shank [Wed, 17 Sep 2008 03:46:23 +0000 (03:46 +0000)] 
Add autodie support to the InputOutput::RequireChecked* policies.

12 years agoAllow specification of violation descriptions in ProhibitEvilModules.
Elliot Shank [Sun, 14 Sep 2008 08:04:54 +0000 (08:04 +0000)] 
Allow specification of violation descriptions in ProhibitEvilModules.

12 years agoChange Modules::ProhibitEvilModules::initialize_if_enabled() into a
Elliot Shank [Sun, 14 Sep 2008 05:47:35 +0000 (05:47 +0000)] 
Change Modules::ProhibitEvilModules::initialize_if_enabled() into a
custom parser for the "modules" option in preparation for providing an
means for specifying the violation description.

12 years agoChange Modules::ProhibitEvilModules to include the bad module name in
Elliot Shank [Sun, 14 Sep 2008 05:25:59 +0000 (05:25 +0000)] 
Change Modules::ProhibitEvilModules to include the bad module name in
the violation description.

12 years agoSmall POD addition to ControlStructures::ProhibitPostfixControls.
Elliot Shank [Sun, 14 Sep 2008 05:24:43 +0000 (05:24 +0000)] 
Small POD addition to ControlStructures::ProhibitPostfixControls.

12 years agoRewrap the POD in NamingConventions::Capitalization and
Elliot Shank [Sun, 14 Sep 2008 05:23:23 +0000 (05:23 +0000)] 
Rewrap the POD in NamingConventions::Capitalization and
put copyright for Schwern in there as well.

12 years agoUpdated docs about EPIC
Jeffrey Ryan Thalhammer [Mon, 8 Sep 2008 03:34:27 +0000 (03:34 +0000)] 
Updated docs about EPIC

12 years agoUpdate $VERSION in NamingConventions::Capitalization.
Elliot Shank [Sun, 7 Sep 2008 10:52:55 +0000 (10:52 +0000)] 
Update $VERSION in NamingConventions::Capitalization.

12 years agoRestore Schwern's Capitalization policy.
Elliot Shank [Sun, 7 Sep 2008 10:51:39 +0000 (10:51 +0000)] 
Restore Schwern's Capitalization policy.

12 years agoWhoops. Missed some version number changes in the 1.093_001
Elliot Shank [Sun, 7 Sep 2008 10:39:18 +0000 (10:39 +0000)] 
Whoops.  Missed some version number changes in the 1.093_001
change.

12 years agoRelease P::C 1.093_001 so that I can get access to the v1.093_001 v1.093_01
Elliot Shank [Sun, 7 Sep 2008 10:33:32 +0000 (10:33 +0000)] 
Release P::C 1.093_001 so that I can get access to the
RequireRcsKeywords fix at work.

12 years agoFix PodSpelling in RequireInterpolationOfMetachars.
Elliot Shank [Sun, 7 Sep 2008 10:00:19 +0000 (10:00 +0000)] 
Fix PodSpelling in RequireInterpolationOfMetachars.

12 years agoUse is_document_exempt() RequireExplicitPackage and
Elliot Shank [Sun, 7 Sep 2008 09:53:56 +0000 (09:53 +0000)] 
Use is_document_exempt() RequireExplicitPackage and
RequirePackageMatchesPodName.

12 years agoFix RequireFilenameMatchesPackage in terms of programs.
Elliot Shank [Sun, 7 Sep 2008 09:32:30 +0000 (09:32 +0000)] 
Fix RequireFilenameMatchesPackage in terms of programs.
Patch from Schwern in RT #39024.

12 years agoAdd test case to RequireEndWithOne.run from Schwern's
Elliot Shank [Sun, 7 Sep 2008 09:22:09 +0000 (09:22 +0000)] 
Add test case to RequireEndWithOne.run from Schwern's
patch in RT #39024.

12 years agoIn partial response to Schwern's patch for "non-program"
Elliot Shank [Sun, 7 Sep 2008 08:59:38 +0000 (08:59 +0000)] 
In partial response to Schwern's patch for "non-program"
Policies, add P::C::Policy::is_document_exempt() (which
I've wanted for a while).

12 years agoDocument the rcs_keywords option for
Elliot Shank [Sun, 7 Sep 2008 08:04:58 +0000 (08:04 +0000)] 
Document the rcs_keywords option for
RequireInterpolationOfMetachars.

12 years agoAllow RequireRcsKeywords to find things after __END__.
Elliot Shank [Sun, 7 Sep 2008 06:51:36 +0000 (06:51 +0000)] 
Allow RequireRcsKeywords to find things after __END__.

12 years agoBumped VERSION to 1.092. v1.092
Jeffrey Ryan Thalhammer [Tue, 2 Sep 2008 16:43:48 +0000 (16:43 +0000)] 
Bumped VERSION to 1.092.

12 years agoThere were POD errors in the release that I just made,
Jeffrey Ryan Thalhammer [Tue, 2 Sep 2008 16:25:20 +0000 (16:25 +0000)] 
There were POD errors in the release that I just made,
so I'm backing out Schwern's new policy again so I can
make another release.

12 years agoFixing errors in POD that were exposed in the last
Jeffrey Ryan Thalhammer [Tue, 2 Sep 2008 16:03:18 +0000 (16:03 +0000)] 
Fixing errors in POD that were exposed in the last
release, thanks to CPAN testers.

12 years agoSome tweaks to my Ant build script. Since I use macports, much of my stuff is instal...
Jeffrey Ryan Thalhammer [Tue, 2 Sep 2008 05:40:05 +0000 (05:40 +0000)] 
Some tweaks to my Ant build script.  Since I use macports, much of my stuff is installed in /opt/local/bin.  So I need that to be in the path for things like aspell and cover, which are needed during some of the build steps.

12 years agoAdding back in Schwern's Capitalization policy.
Jeffrey Ryan Thalhammer [Tue, 2 Sep 2008 05:26:07 +0000 (05:26 +0000)] 
Adding back in Schwern's Capitalization policy.

12 years agoBumped VERSION to 1.091 v1.091
Jeffrey Ryan Thalhammer [Tue, 2 Sep 2008 04:36:59 +0000 (04:36 +0000)] 
Bumped VERSION to 1.091

12 years agoCleaning up my trailing whitespace. Damn Eclipse. I guess nobody is perfect.
Jeffrey Ryan Thalhammer [Tue, 2 Sep 2008 04:36:02 +0000 (04:36 +0000)] 
Cleaning up my trailing whitespace.  Damn Eclipse.  I guess nobody is perfect.

12 years agoUndoing the patch for Schwern's capitalization policy.
Jeffrey Ryan Thalhammer [Tue, 2 Sep 2008 04:12:00 +0000 (04:12 +0000)] 
Undoing the patch for Schwern's capitalization policy.
We'll put this back in after the release.

12 years agoMarked some failing tests as TODO, so I can go ahead with release. Will fix these...
Jeffrey Ryan Thalhammer [Tue, 2 Sep 2008 03:36:18 +0000 (03:36 +0000)] 
Marked some failing tests as TODO, so I can go ahead with release.  Will fix these later.

12 years agoFurther cleanup after moving that policy to P-C-More.
Jeffrey Ryan Thalhammer [Tue, 2 Sep 2008 03:19:56 +0000 (03:19 +0000)] 
Further cleanup after moving that policy to P-C-More.

12 years agoUndo Schwern's changes in the last patch to the
Elliot Shank [Thu, 28 Aug 2008 13:07:45 +0000 (13:07 +0000)] 
Undo Schwern's changes in the last patch to the
ProhibitMixedCase* policies which changed their PBP page
numbers and increased their severities from lowest to low.

He was correct in his original assessment that these
policies don't really do anything with regard to PBP section
3.5.  These do apply the rules in section 3.6, however.

Also, since these policies deal with cosmetic issues, they
should remain at the lowest severity by default.

12 years agoApply Schwern's NamingConventions::Capitalization patch from
Elliot Shank [Thu, 28 Aug 2008 13:01:05 +0000 (13:01 +0000)] 
Apply Schwern's NamingConventions::Capitalization patch from
RT #38673.

12 years agoUpdate Changes file with latest bug fix.
Jeffrey Ryan Thalhammer [Wed, 27 Aug 2008 17:52:05 +0000 (17:52 +0000)] 
Update Changes file with latest bug fix.

12 years agoI think I've finally fixed the problem of false-positives coming from leading tabs...
Jeffrey Ryan Thalhammer [Wed, 27 Aug 2008 17:46:06 +0000 (17:46 +0000)] 
I think I've finally fixed the problem of false-positives coming from leading tabs inside qw() statements and regexes.

12 years agoUpdate TODO list.
Jeffrey Ryan Thalhammer [Wed, 27 Aug 2008 03:24:17 +0000 (03:24 +0000)] 
Update TODO list.

12 years agoUpdated changes to reflect relocation of Policy.
Jeffrey Ryan Thalhammer [Wed, 27 Aug 2008 03:06:48 +0000 (03:06 +0000)] 
Updated changes to reflect relocation of Policy.

12 years agoMoving the test case for RequireConstantOnLeftSideOfEquality too.
Jeffrey Ryan Thalhammer [Wed, 27 Aug 2008 03:02:19 +0000 (03:02 +0000)] 
Moving the test case for RequireConstantOnLeftSideOfEquality too.

12 years agoFinally decided to move RequireConstantOnLeftSideOfEquality to
Jeffrey Ryan Thalhammer [Wed, 27 Aug 2008 02:59:41 +0000 (02:59 +0000)] 
Finally decided to move RequireConstantOnLeftSideOfEquality to
P-C-More.  This is just too controversial and pesky to put in the
core.  If I can come up with a better version of the policy that
actually finds real bugs (as Chris suggested), then I'll put it in
core.

12 years agoFixed ProhibitHardTabs so that it would allow leading tabs
Jeffrey Ryan Thalhammer [Sun, 24 Aug 2008 11:01:13 +0000 (11:01 +0000)] 
Fixed ProhibitHardTabs so that it would allow leading tabs
in qw(), regexen, and virtually any other token.  I'm not
sure this is what we really want.  For reference,
https://rt.cpan.org/Ticket/Display.html?id=32440.  I
couldn't tell from Elliot's comments what the "correct"
solution is.  But I'm sure he'll enlighten me soon
enough.

12 years agoEnhanced the -doc feature to take advantage of the
Jeffrey Ryan Thalhammer [Sun, 24 Aug 2008 08:58:14 +0000 (08:58 +0000)] 
Enhanced the -doc feature to take advantage of the
-pager feature that Schwern wrote.  To do this, I
needed to change up when the options are dashified.
Now, they are dashified immediately after GetOpt
pulls them out of @ARGV.  I think this is an
improvement because you don't have to worry
about whether the %opts hash has been dashified
yet.

12 years agoAdding an EPIC config file
Jeffrey Ryan Thalhammer [Sun, 24 Aug 2008 00:40:11 +0000 (00:40 +0000)] 
Adding an EPIC config file

12 years agoDealing with more Eclipse files
Jeffrey Ryan Thalhammer [Sun, 24 Aug 2008 00:12:56 +0000 (00:12 +0000)] 
Dealing with more Eclipse files

12 years agoAdded a build.xml script to all distributions. Tools like Eclipse and Intelli-J
Jeffrey Ryan Thalhammer [Sat, 23 Aug 2008 23:17:59 +0000 (23:17 +0000)] 
Added a build.xml script to all distributions.  Tools like Eclipse and Intelli-J
have good interfaces for creating and running Ant scripts.  These files
just serve as wrappers around Build.PL, so you can take advantage of those
interfaces when working with Perl dists.

12 years agoTaking premptive steps: adding my forthcoming build.xml to MANIFEST.SKIP
Jeffrey Ryan Thalhammer [Sat, 23 Aug 2008 23:07:45 +0000 (23:07 +0000)] 
Taking premptive steps: adding my forthcoming build.xml to MANIFEST.SKIP

12 years agoFix PBP page numbers in ProhibitMixedCaseVars and
Elliot Shank [Sat, 23 Aug 2008 01:19:41 +0000 (01:19 +0000)] 
Fix PBP page numbers in ProhibitMixedCaseVars and
ProhibitMixedCaseVars.

12 years agoForgot to set svn:keywords on
Elliot Shank [Fri, 22 Aug 2008 21:15:56 +0000 (21:15 +0000)] 
Forgot to set svn:keywords on
RegularExpressions::RequireDotMatchAnything.

12 years agoMake tests comply with
Elliot Shank [Fri, 22 Aug 2008 02:34:34 +0000 (02:34 +0000)] 
Make tests comply with
RegularExpressions::RequireDotMatchAnything.

12 years agoMake rest of code comply with
Elliot Shank [Fri, 22 Aug 2008 02:24:50 +0000 (02:24 +0000)] 
Make rest of code comply with
RegularExpressions::RequireDotMatchAnything.

12 years agoMake Policies comply with
Elliot Shank [Fri, 22 Aug 2008 02:07:35 +0000 (02:07 +0000)] 
Make Policies comply with
RegularExpressions::RequireDotMatchAnything.

12 years agoImplement RegularExpressions::RequireDotMatchAnything.
Elliot Shank [Fri, 22 Aug 2008 01:43:08 +0000 (01:43 +0000)] 
Implement RegularExpressions::RequireDotMatchAnything.

12 years agoCreate an option for CodeLayout::ProhibitQuotedWordLists
Elliot Shank [Fri, 22 Aug 2008 01:18:27 +0000 (01:18 +0000)] 
Create an option for CodeLayout::ProhibitQuotedWordLists
that makes it complain about word lists containing non-word
characters again.

12 years agoAdd ".project" to all of the MANIFEST.SKIP files.
Elliot Shank [Fri, 22 Aug 2008 00:51:21 +0000 (00:51 +0000)] 
Add ".project" to all of the MANIFEST.SKIP files.

12 years agoColor for high-severity violations is now magenta,
Jeffrey Ryan Thalhammer [Thu, 21 Aug 2008 01:12:07 +0000 (01:12 +0000)] 
Color for high-severity violations is now magenta,
because this looks better on typical terminals with
a white background.  RT #38511.

12 years agoAdding username for anonymous checkout from our repository.
Jeffrey Ryan Thalhammer [Thu, 21 Aug 2008 00:42:15 +0000 (00:42 +0000)] 
Adding username for anonymous checkout from our repository.
Thanks to Schwern for suggesting.  #RT 38628.

12 years agoI started using Eclipse for all my Perl work. So I am checking in the Eclipse projec...
Jeffrey Ryan Thalhammer [Tue, 19 Aug 2008 06:05:09 +0000 (06:05 +0000)] 
I started using Eclipse for all my Perl work.  So I am checking in the Eclipse project files for each distro.  I am not really sure if these should be in the repository or not

12 years agoUndoing r2675. Now that the "-color" is no longer being set in _parse_command_line...
Jeffrey Ryan Thalhammer [Tue, 19 Aug 2008 05:39:41 +0000 (05:39 +0000)] 
Undoing r2675.  Now that the "-color" is no longer being set in _parse_command_line(), we no longer need to worry about double dashes in the keys of the argument hash for P::C->new().  Default values for the command-line options should only be defined in the OptionsProcessor.

12 years agoAdded failing test case that came to me in the mail today.
Jeffrey Ryan Thalhammer [Tue, 19 Aug 2008 05:31:59 +0000 (05:31 +0000)] 
Added failing test case that came to me in the mail today.

12 years agoChange perlcritic to not unconditionally add a "-" to the
Elliot Shank [Sun, 17 Aug 2008 10:56:48 +0000 (10:56 +0000)] 
Change perlcritic to not unconditionally add a "-" to the
front of options to be passed to Perl::Critic::new() in
response to RT #38458.

12 years agoMake the changes to
Elliot Shank [Sun, 17 Aug 2008 10:30:08 +0000 (10:30 +0000)] 
Make the changes to
RegularExpressions::RequireExtendedFormatting more clear in
Changes.

12 years agoClean up Schwern's
Elliot Shank [Sun, 17 Aug 2008 10:18:21 +0000 (10:18 +0000)] 
Clean up Schwern's
RegularExpressions::RequireExtendedFormatting patch. Renamed
the min_regex_length option to
minimum_regex_length_to_complain_about. The way the
allow_with_whitespace was coded, if the regex contained any
whitespace at all, it was exempt. Instead, I made regexes
that only contain word characters and whitespace exempt by
default, and added a strict option.  I'm not so sure about
this one.

12 years agoApply raw patch from Schwern that adds options to
Elliot Shank [Sun, 17 Aug 2008 09:19:38 +0000 (09:19 +0000)] 
Apply raw patch from Schwern that adds options to
RegularExpressions::RequireExtendedFormatting.

12 years agoFix missing word in the ProhibitNoWarnings POD.
Elliot Shank [Sat, 16 Aug 2008 02:09:57 +0000 (02:09 +0000)] 
Fix missing word in the ProhibitNoWarnings POD.

12 years agoUpdate Changes with the new allow_with_category_restriction
Elliot Shank [Sat, 16 Aug 2008 02:03:03 +0000 (02:03 +0000)] 
Update Changes with the new allow_with_category_restriction
option for TestingAndDebugging::ProhibitNoWarnings.

12 years agoClean up both existing problems and problems with Schwern's
Elliot Shank [Sat, 16 Aug 2008 01:58:43 +0000 (01:58 +0000)] 
Clean up both existing problems and problems with Schwern's
patch in TestingAndDebugging::ProhibitNoWarnings.

12 years agoApply raw patch from Schwern for
Elliot Shank [Sat, 16 Aug 2008 01:29:27 +0000 (01:29 +0000)] 
Apply raw patch from Schwern for
TestingAndDebugging::ProhibitNoWarnings.  Needs some rework.
The special value in the allow option?  Eww.  Not too hard
to fix, though.

12 years agoClean up self compliance problems introduced by Schwern's
Elliot Shank [Thu, 14 Aug 2008 05:01:46 +0000 (05:01 +0000)] 
Clean up self compliance problems introduced by Schwern's
pager patch.  Still need to actually review the patch.  :]

12 years agoApply the unmodified patch from Schwern (modulo dealing with
Elliot Shank [Thu, 14 Aug 2008 03:58:27 +0000 (03:58 +0000)] 
Apply the unmodified patch from Schwern (modulo dealing with
RJBS' change to support PAR).  I have no idea whether tests
or anything works at this point.  I just considered it
worthwhile to capture the change as it is before modifying
it further.

12 years agoComment in P::C::Document about underscores in perl version
Elliot Shank [Thu, 14 Aug 2008 03:49:53 +0000 (03:49 +0000)] 
Comment in P::C::Document about underscores in perl version
dependencies, i.e. "use 5.008_005;".

12 years agoAdd the xt directory to no_index in Build.PL.
Elliot Shank [Wed, 13 Aug 2008 17:07:25 +0000 (17:07 +0000)] 
Add the xt directory to no_index in Build.PL.

12 years agoUpdate Changes to reflect the fix for RT #38380 that RJBS
Elliot Shank [Mon, 11 Aug 2008 20:12:20 +0000 (20:12 +0000)] 
Update Changes to reflect the fix for RT #38380 that RJBS
did.

12 years agobugfix for running under PAR, RT #38380
Ricardo Signes [Mon, 11 Aug 2008 19:54:16 +0000 (19:54 +0000)] 
bugfix for running under PAR, RT #38380

12 years agoin 20_policies.t, specify a more useful format for
Elliot Shank [Sat, 9 Aug 2008 20:49:52 +0000 (20:49 +0000)] 
in 20_policies.t, specify a more useful format for
violations that are shown when there's a test failure.

Inspired by failures in
Variables/RequireLocalizedPunctuationVars.run occurring when
running on a 5.10.0 + patches perl.

12 years agoAnother example of a problem in
Elliot Shank [Wed, 30 Jul 2008 01:49:36 +0000 (01:49 +0000)] 
Another example of a problem in
ProhibitEscapedMetacharacters with character classes.

12 years agoFailing test for
Elliot Shank [Wed, 30 Jul 2008 01:41:56 +0000 (01:41 +0000)] 
Failing test for
RegularExpressions::ProhibitEscapedMetacharacters.

12 years agoForgot to update Changes
Chris Dolan [Mon, 28 Jul 2008 02:40:25 +0000 (02:40 +0000)] 
Forgot to update Changes

12 years agoTernaries now satisfy RequireCheckingReturnValueOfEval:
Chris Dolan [Mon, 28 Jul 2008 02:39:04 +0000 (02:39 +0000)] 
Ternaries now satisfy RequireCheckingReturnValueOfEval:
  eval { require Foo; 1; } ? ok() : nok();

12 years agoDescribe policy for enforcing correct spelling of variable names.
Jeffrey Ryan Thalhammer [Sun, 27 Jul 2008 23:30:53 +0000 (23:30 +0000)] 
Describe policy for enforcing correct spelling of variable names.

This all got started here: http://rt.cpan.org/Ticket/Display.html?id=37899

12 years agoFixed spelling error. RT #37899
Jeffrey Ryan Thalhammer [Sun, 27 Jul 2008 23:20:48 +0000 (23:20 +0000)] 
Fixed spelling error. RT #37899

12 years agoCodeLayout::ProhibitQuotedWordLists also now applies to the
Jeffrey Ryan Thalhammer [Sun, 27 Jul 2008 06:14:55 +0000 (06:14 +0000)] 
CodeLayout::ProhibitQuotedWordLists also now applies to the
import arguments of a C<use> statement.  RT #24467.

I also cleaned up some of the tests for this Policy.

Disabled RequireConstantOnLeftSideOfEquality until I decide
which distro to put that policy in.

12 years agoProhibitQuotedWordLists does not apply to lists
Jeffrey Ryan Thalhammer [Sun, 27 Jul 2008 03:35:46 +0000 (03:35 +0000)] 
ProhibitQuotedWordLists does not apply to lists
that contain non-words. RT #37886.

12 years agoAdd RT # to ProhibitPostfixControls TODO.
Elliot Shank [Thu, 24 Jul 2008 14:50:59 +0000 (14:50 +0000)] 
Add RT # to ProhibitPostfixControls TODO.

12 years agoTODO about ControlStructures::ProhibitPostfixControls
Elliot Shank [Thu, 24 Jul 2008 14:49:56 +0000 (14:49 +0000)] 
TODO about ControlStructures::ProhibitPostfixControls
changing its explanation when "do {} while" is found.

12 years agoDiddling svn:ignore.
Jeffrey Ryan Thalhammer [Wed, 23 Jul 2008 04:18:09 +0000 (04:18 +0000)] 
Diddling svn:ignore.

12 years agoAdded my first new policy in a very long time. So I might be a bit
Jeffrey Ryan Thalhammer [Wed, 23 Jul 2008 04:14:28 +0000 (04:14 +0000)] 
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.

12 years ago20_policies.t didn't have a "1;" at the end, so it failed to v1.090
Elliot Shank [Tue, 22 Jul 2008 14:20:39 +0000 (14:20 +0000)] 
20_policies.t didn't have a "1;" at the end, so it failed to
load in 20_policies.t_without_optional_dependencies.t.

12 years agoBump P::C version to 1.090.
Elliot Shank [Tue, 22 Jul 2008 13:47:03 +0000 (13:47 +0000)] 
Bump P::C version to 1.090.

12 years agoProhibitSingleCharAlternation test was failing when
Elliot Shank [Tue, 22 Jul 2008 13:44:20 +0000 (13:44 +0000)] 
ProhibitSingleCharAlternation test was failing when
Regexp::Parser wasn't installed, incorrectly.  In addition
to fixing the test, generate a
"_without_optional_dependencies" wrapper around
t/20_policies.t.

12 years agoBump P::C version to 1.089. v1.089
Elliot Shank [Tue, 22 Jul 2008 02:37:38 +0000 (02:37 +0000)] 
Bump P::C version to 1.089.

12 years agoKnock out RequirePodSections in 20_policy_podspelling.t.
Elliot Shank [Tue, 22 Jul 2008 02:19:24 +0000 (02:19 +0000)] 
Knock out RequirePodSections in 20_policy_podspelling.t.
I don't understand why but I can't knock it out in
42_perlcriticrc-tests.  However, I want to get a release
out, so I'll get back to it later.

12 years agoFix ProhibitPostfixControls in tests.
Elliot Shank [Tue, 22 Jul 2008 01:51:58 +0000 (01:51 +0000)] 
Fix ProhibitPostfixControls in tests.

12 years agoDeal with RequireInterpolationOfMetachars in tests.
Elliot Shank [Mon, 21 Jul 2008 21:57:05 +0000 (21:57 +0000)] 
Deal with RequireInterpolationOfMetachars in tests.

12 years agoFix ProhibitEscapedMetacharacters in tests.
Elliot Shank [Mon, 21 Jul 2008 21:36:04 +0000 (21:36 +0000)] 
Fix ProhibitEscapedMetacharacters in tests.

12 years agoFix ProhibitEscapedCharacters in
Elliot Shank [Mon, 21 Jul 2008 21:02:15 +0000 (21:02 +0000)] 
Fix ProhibitEscapedCharacters in
20_policy_requireconsistentnewlines.t.

12 years agoFix noisy strings in tests.
Elliot Shank [Mon, 21 Jul 2008 20:17:03 +0000 (20:17 +0000)] 
Fix noisy strings in tests.