Commit Graph

36 Commits

Author SHA1 Message Date
Paul Howarth 542f65424e Update to 1.140
- New upstream release 1.140
  - Subroutines::RequireFinalReturn now lets you specify a terminal_methods
    parameter to specify methods that should be seen as terminal; this is like
    the terminal_funcs parameter, but for methods (GH#920)
  - Removed an extra /x in RequireInterpolationOfMetachars.pm that caused
    deprecation warnings in Perl 5.22 and higher  (GH#822)
  - Documentation::RequirePackageMatchesPodName now recognizes the package
    name if it's in 'I<>' or 'B<>' markup (GH#913)
- Use %license unconditionally
2021-03-24 10:01:09 +00:00
Paul Howarth a76e10cf99 Update to 1.138
- New upstream release 1.138
  - RequireCheckingReturnValueOfEval didn't count returning the result of an
    eval as checking it - now it does; however, it's only if you "return eval
    { ... }" - it still doesn't handle the case of "return ( eval {} )"
    (GH#324)
  - ProhibitPunctuationVars would get confused and think that the expression
    qr/SOME$/ was using the $/ special variable (GH#843)
2020-01-25 16:08:33 +00:00
Paul Howarth 8abcc37422 Update to 1.136
- New upstream release 1.136
  New Features
  - The ProhibitNoWarnings policy now handles warnings in the experimental::
    group (GH#892)
  Documentation
  - Prevented some example code from showing up in 'perldoc' (GH#799)
- Fix shellbang in ppidump tool
2019-11-28 10:17:00 +00:00
Paul Howarth 6f1efc0ef8 Update to 1.134
- New upstream release 1.134
  New Features
  - Added new policy BuiltinFunctions::ProhibitShiftRef (GH#837)
  - Support indented heredocs (GH#861)
  - In Subroutines::ProhibitManyArgs, you can now omit the object variable
    (C<$self> or C<$class>) from the argument count (GH#815)
  Policy Changes
  - The policy Documentation::RequirePodLinksIncludeText is obsolete and has
    been removed (GH#494)
  Dependencies
  - Removed use of File::HomeDir
  - Upgrade to PPI 1.265 (GH#860)
  - Fix failed tests caused by new PPI (GH#858)
  Internals
  - Updated the Appveyor config (GH#851)
2019-05-23 11:35:47 +01:00
Paul Howarth f2ce4835fa Update to 1.132
- New upstream release 1.132
  New Features
  - In the ProhibitLeadingZeros policy, added an exception for mkfifo (GH#786)
  - Add colour support for Windows platforms (GH#700)
  - Perl::Critic now assumes that .psgi files are Perl, too (GH#805)
  - Variables::ProhibitUnusedVariables no longer gives a false positive for
    variables used in interpolation (GH#801)
  - Added the ability to specify a regex to tell what unused private
    subroutines are OK in Subroutines::ProhibitUnusedPrivateSubroutines; this
    is handy for Moose classes where there could be many false positives on
    _build_xxxx() subroutines (GH#811, GH#812)
  Dependencies
  - Perl::Critic now no longer relies on the deprecated Email::Address
    (GH #816)
  Bug Fixes
  - Recode Perl::Critic::Utils::all_perl_files() to use File::Find instead of
    opendir/readdir; this solves endless directory traversals if the
    directories contain circular symbolic references
  - Added missing requirement for Fatal.pm
  Documentation
  - Added CONTRIBUTING.md
- Switch upstream from search.cpan.org to metacpan.org
- Switch spell checker from aspell to hunspell
2018-06-04 10:05:32 +01:00
Paul Howarth f6bfbed442 Update to 1.130
- New upstream release 1.130
  New Features
  - Policies that ensure that system calls are checked, such as
    RequireCheckedSystemCalls, now have an "autodie_modules" setting that
    allows you to tell the policy about other modules that export autodie
    (GH#699, GH#747)
2017-07-21 11:10:56 +01:00
Paul Howarth ca6c5a8137 Update to 1.128
- New upstream release 1.128
  Bug Fixes
  - PPI misparsing a module caused an incorrect "Must end with a recognizable
    true value"; this is fixed by upgrading to PPI 1.224 (GH#696, GH#607)
  - A test would fail under the upcoming Perl 5.26 that omits the current
    directory from @INC
  - Fixed an invalid test in the RequireBarewordsIncludes test (GH#751)
  - If an element contained blank lines then the source "%r" displayed for a
    violation was wrong (GH#702, GH#734)
  Dependencies
  - Perl::Critic now requires PPI 1.224; PPI is the underlying Perl parser on
    which Perl::Critic is built, and 1.224 introduces many parsing fixes such
    as:
    - Fixes for dot-in-@INC
    - Parse left side of => as bareword even if it looks like a keyword or op
    - $::x now works
    - Higher accuracy when deciding whether certain characters are operators or
      variable type casts (*&% etc.)
    - Subroutine attributes parsed correctly
  Performance Enhancements
  - Sped up BuiltinFunctions::ProhibitUselessTopic ~7% (GH#656)
  Documentation
  - Fixed incorrect explanation of capture variables in
    ProhibitCaptureWithoutTest
  - Fixed incorrect links
  - Fixed incorrect example for returning a sorted list
  - Fixed invalid POD (GH#735)
  - Updated docs on ProhibitYadaOperator (GH#662)
  - Removed all the references to the old mailing list and code repository at
    tigris.org (GH#757)
- This release by PETDANCE → update source URL
2017-06-11 18:17:10 +01:00
Paul Howarth 48affb61a9 Update to 1.126
- New upstream release 1.126
  - Added a policy: ControlStructures::ProhibitYadaOperator - Never use ... in
    production code
  - Fixed problems arising from having -b in your .perltidyrc file
  - Removed extra newline from policy names returned by P::C::Config->policies
  - 'fc' and 'say' are now covered by ProhibitUselessTopic
  - Add more strict/warnings importer modules
  - Path::Tiny is now recommended over File::Slurp
  - Micro-optimize by calling ->content() directly instead of going through the
    overloads
  - Square brackets are now allowed around your '## no critic' policy list
2015-08-11 14:57:32 +01:00
Paul Howarth 8e3a900650 Update to 1.125
- New upstream release 1.125
  - Corrected dependency on List::Util::any() to List::MoreUtils::any()
  - Revised and updated documentation
- Drop upstreamed patch for GH #626
2015-03-03 11:26:09 +00:00
Paul Howarth 801b2accba Update to 1.124
- New upstream release 1.124
  - The ProhibitUnusedPrivateSubroutines policy can now ignore files that use
    particular modules with the 'skip_when_using' option, which allows, for
    example, skipping the policy for roles
  - The RequireUseStrict and RequireUseWarnings policies now regard Moose, Moo,
    Mouse, Dancer, Mojolicious, and several other modules as equivalent to the
    strict and warnings pragma
  - The RequireChecked* family of policies has been fixed to accommodate
    version numbers when use-ing the autodie pragma (GH #612)
- Add patch to avoid the need for List::Util ≥ 1.33 (GH #626)
2015-02-28 20:23:42 +00:00
Paul Howarth 9cb9d512fd Update to 1.123
- New upstream release 1.123
  - Now requires PPI-1.220 which has numerous bug fixes; this may eliminate
    the need for some "## no critic" markers you inserted to work around those
    bugs - the "ProhibitUselessNoCritic" policy should help you find them
  - Fixed a typo in the Variables::ProhibitPerl4PackageNames message
2014-11-12 16:24:23 +00:00
Paul Howarth 8ec205d92c Update to 1.122
- New upstream release 1.122
  - Now requires PPI-1.218, which has numerous enahncements and bug fixes
  - Also now requires Readonly-2.00, which obviates the need for Readonly::XS
    to get fast constants
  - File::HomeDir, File::Which, and Term::ANSIColor are all required now
    instead of being optional or recommended; this simplifies our test code
    and ensures consistent optimal behavior for all users
  - Added two new policies: BuiltinFunctions::ProhibitUselessTopic and
    RegularExpressions::ProhibitUselessTopic
  - Updated the perlcritic.el script to use modern Emacs hooks (GH #556)
  - Removed all the internal RCS keyword boilerplate blocks that were never
    getting expanded
- Use %license where possible
- Drop upstreamed patches
2014-08-26 00:09:44 +01:00
Paul Howarth 5f4aead861 Update to 1.121
- New upstream release 1.121
  - Added new themes based on CERT guidelines
  - The source code repository for Perl-Critic has been moved to GitHub at
    http://github.com/Perl-Critc/Perl-Critic; all tickets from the RT queue
    have also been moved there - please use GitHub for submitting any new bugs
    or corresponding about existing ones
  - The change log was reformatted to comply with CPAN::Changes::Spec
- BR: perl(Perl::Critic::Policy::Miscellanea::RequireRcsKeywords) for the
  extra tests
- Bump perl(Test::Kwalitee) version requirement to 1.15
2013-11-04 14:22:24 +00:00
Paul Howarth 2702ff7c1f Update to 1.120
- New upstream release 1.120
  - Fix precedence error in Perl::Critic::Utils (CPAN RT#88866)
2013-10-26 19:52:59 +01:00
Paul Howarth 0e1b371d22 Update to 1.119
- New upstream release 1.119
  - Tests were failing with Config::Tiny 2.17 or later, due to a change in the
    error messages produced by that module (CPAN RT#88679, CPAN RT#88889,
    https://github.com/Perl-Critic/Perl-Critic/pull/16)
  - BuiltinFunctions::ProhibitVoidGrep and ::ProhibitVoidMap: grep and map
    called as functions are now allowed in slice operations (CPAN RT#79289)
  - Subroutines::RequireArgUnpacking: most tests of the size of @_ are now
    allowed (CPAN RT#79138)
  - Modernized our usage of Exporter (CPAN RT#75300)
- Drop redundant patch for CPAN RT#87875
2013-09-26 16:01:24 +01:00
Paul Howarth b65d650da0 Update to 1.118
- New upstream release 1.118:
  Policy Changes:
  - CodeLayout::RequireTidyCode: revise to work with incompatible changes in
    Perl::Tidy 20120619 (CPAN RT#77977)
  - TestingAndDebugging::ProhibitNoWarnings: correct the parse of the
    'no warnings' statement, so that 'no warnings "qw"' is recognized as
    suppressing just 'qw' warnings (CPAN RT#74647)
  - Miscellanea::RequireRcsKeywords has been moved to the Perl-Critic-More
    distribution (CPAN RT#69546)
  Other Changes:
  - Make all unescaped literal "{" characters in regexps into character
    classes; these are deprecated, and became noisy with Perl 5.17.0
    (CPAN RT#77510)
- Drop now-redundant patch for Perl::Tidy compatibility
- BR: perl(lib) for the build process
- BR: perl(base), perl(PPIx::Utilities::Node) and perl(Test::Builder) ≥ 0.92
  for the module (Test::Builder required by Test::Perl::Critic::Policy)
- BR: perl(Exporter) ≥ 5.58; with older versions we get:
  ":color_severity" is not exported by the Perl::Critic::Utils::Constants module
- BR: perl(File::Spec::Functions) for the test suite
- Drop buildreqs for perl(charnames), perl(File::Basename), perl(File::Find),
  perl(overload), perl(strict) and perl(warnings) - not dual lived
2012-07-11 15:51:21 +01:00
Paul Howarth 729367fab8 Update to 1.117
- New upstream release 1.117:
  New Policies:
  - Variables::ProhibitAugmentedAssignmentInDeclaration reports constructs like
    'my $x += 1'
  Policy Changes:
  - BuiltinFunctions::ProhibitLvalueSubstr: add explicit 'use version'
    (CPAN RT#68498)
  - CodeLayout::ProhibitHardTabs: add 'pbp' to the default_themes list
    (CPAN RT#71093)
  - ControlStructures::ProhibitMutatingListFunctions now understands that
    tr///r (introduced in 5.13.7) does not change its operand
  - ControlStructures::ProhibitMutatingListFunctions now understands that
    '//=', '<<=', and '>>=' are assignment operators (CPAN RT#70901)
  - ErrorHandling::RequireCheckingReturnValueOfEval now allows things
    like grep { eval $_ } (CPAN RT#69489)
  - Modules::RequireExplicitPackage now has configuraion option
    allow_import_of, to allow the import of specified modules before the
    package statement (CPAN RT#72660)
  - RegularExpressions::ProhibitEnumeratedClasses no longer thinks
    that [A-Za-z_] matches \w. RT #69322.
  - RegularExpressions::ProhibitUnusedCaptures now skips the first block of
    an 'if' or 'elsif' if the regular expression is bound to its operand with
    the '!~' operator (CPAN RT#69867)
  - RegularExpressions::ProhibitUnusedCaptures now looks into lists and blocks
    in the replacement portion of the regular expression if /e is asserted
    (CPAN RT#72086)
  - RegularExpressions::RequireDotMatchAnything,
    RegularExpressions::RequireExtendedFormatting and
    RegularExpressions::RequireLineBoundaryMatching now honor defaults set with
    'use re "/modifiers"' (CPAN RT#72151)
  - Subroutines::ProhibitManyArgs now recognizes '+' as a prototype character
  - Variables::ProhibitPunctuationVars now recognizes bracketed variables
    embedded in interpolated strings (e.g. "${$}"); for the purpose of the
    'allow' configuration, these are considered equivalent to the unbracketed
    form (CPAN RT#72910)
  Other Changes:
  - Corrected POD in Perl::Critic::PPI::Utils (CPAN RT#68898)
  - Perl::Critic::Violation source() method now returns the line containing
    the violation (not the first line) when the statement containing the
    violation spans multiple lines
- This release by THALJEF -> update source URL
- Drop stopwords patch, now included upstream
2011-12-22 10:45:33 +00:00
Paul Howarth 311f21ae61 Update to 1.116
- New upstream release 1.116:
  - BuiltInFunctions::ProhibitLvalueSubstr does not report violations if the
    document contains an explicit 'use n.nnn;' where the version is before
    5.005 (CPAN RT#59112)
  - Documentation::RequirePodSections no longer blows up on code having POD but
    no =head1 (CPAN RT#67231)
  - RegularExpressions::ProhibitUnusedCapture should more reliably find things
    like s/(a)/${1}2/ (CPAN RT#67273)
  - ValuesAndExpressions::ProhibitMagicNumbers and Module::RequireVersionVar
    now treat versions passed as the second argument of a 'package' statement
    the same as versions declared as 'our $VERSION ...' (CPAN RT#67159)
  - Variables::RequireLexicalLoopIterators does not report violations if the
    document contains an explicit 'use n.nnn;' where the version is before
    5.004 (CPAN RT#67760)
2011-05-16 12:49:32 +01:00
Paul Howarth 077f0fdadc Update to 1.115
- New upstream release 1.115:
  - Fatal error in RegularExpressions::ProhibitUnusedCapture here document
    check (CPAN RT#67116)
  - Internal POD error in Documentation::RequirePodLinksIncludeText
    (CPAN RT#67012)
2011-04-01 13:10:10 +01:00
Paul Howarth 8d08a157e5 Update to 1.114
- New upstream release 1.114:
  - Documentation::RequirePodLinksIncludeText now handles nested POD formatting
    (CPAN RT#65569)
  - Clarified relation of severity numbers to names in Perl::Critic POD
    (CPAN RT#66017)
  - Removed caveats from Variables::RequireLocalizedPunctuationVars, no longer
    necessary with PPI 1.208 (CPAN RT#65514)
  - Have InputOutput::RequireBriefOpen attempt to expand scope as necessary to
    deal with the case where the open() and the corresponding close() are not
    in the same scope (CPAN RT#64437)
  - RegularExpressions::ProhibitUnusedCapture now looks inside double-quotish
    things (CPAN RT#38942)
  - RegularExpressions::ProhibitUnusedCapture now takes logical alternation
    into account, so that (e.g.)
        if ( /(a)/ || /(b)/ ) {
                say $1;
        }
    is not a violation (CPAN RT#38942)
  - ValuesAndExpressions::ProhibitCommaSeparatedStatements now recognizes
    'return { foo => 1, bar => 2 }' as containing a hash constructor, not a
    block; this was fixed by PPI 1.215 (CPAN RT#61301)
  - ValuesAndExpressions::ProhibitCommaSeparatedStatements now recognizes
    'bless { foo => 1, bar => 2 }' as containing a hash constructor, not a
    block; this was fixed by PPI 1.215 (CPAN RT#64132)
- Bump PPI version requirement to 1.215
- BR/R: perl(Pod::Parser)
2011-03-29 13:06:27 +01:00
Marcela Mašláňová c185ce57fa update to 1.113 2011-03-07 16:04:37 +01:00
Marcela Mašláňová 8ffc46b55d Update to 1.111 2011-01-03 15:18:18 +01:00
Marcela Mašláňová d1a7344c29 * Fri Aug 6 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.108-1
- update
2010-08-06 14:17:15 +02:00
Štěpán Kasal 405ea31a7b - new upstream version
- update build requires
2009-10-07 16:59:49 +00:00
Chris Weyl 87c23d79a7 - update to 1.092 2008-09-09 23:16:43 +00:00
Chris Weyl ebb8cf477f - update to 1.082
- resolve BZ#431577
- add t/ examples/ extras/ tools/, and filter
2008-07-01 03:41:41 +00:00
Tom Callaway 0d7e9448d5 1.080 2008-01-14 23:32:59 +00:00
Jose Pedro Oliveira 4669580a70 Update to 1.053. 2007-06-16 17:46:00 +00:00
Jose Pedro Oliveira 8e88ff80e0 Update to 1.05. 2007-03-20 15:51:44 +00:00
Jose Pedro Oliveira 6a77a18f48 Update to 1.03. 2007-02-15 17:25:44 +00:00
Jose Pedro Oliveira aaa44886f6 Bumping release 2007-01-26 15:33:26 +00:00
Jose Pedro Oliveira 53a0ea771e Update to 0.23. 2007-01-25 00:25:06 +00:00
Jose Pedro Oliveira fcf57205b2 Update to 0.22. 2006-12-17 15:02:30 +00:00
Jose Pedro Oliveira 1665da32c6 Update to 0.21; the new BR needs to be packaged first 2006-11-11 15:30:39 +00:00
Jose Pedro Oliveira f0165e2329 auto-import perl-Perl-Critic-0.2-1 on branch devel from
perl-Perl-Critic-0.2-1.src.rpm
2006-09-23 17:07:14 +00:00
Jose Pedro Oliveira b94f9e17c7 Setup of module perl-Perl-Critic 2006-09-23 17:06:30 +00:00