Import Debian changes 1.152-ok1

libperl-critic-perl (1.152-ok1) nile; urgency=medium

  * Build for openKylin.
This commit is contained in:
openKylinBot 2024-05-07 09:42:56 +08:00 committed by luoyaoming
parent 2c6c1b73e1
commit b7ac60af38
13 changed files with 346 additions and 0 deletions

30
debian/NEWS vendored Normal file
View File

@ -0,0 +1,30 @@
libperl-critic-perl (1.096-1) unstable; urgency=low
From the upstream Changes:
[1.094] Released on 2009-01-01
Incompatible Changes:
* The way that "## no critic" markers was refactored. As
a result, we discovered that the syntax for the markers was pretty
vague. If you didn't do it just right, it would disable all policies,
and not just the specific ones that you wanted. So we've tightened this
up a bit. If you followed the examples that have been in the docs for
the last couple years, then you should be fine. But if you've been
using certain other variations in your "## no critic" markers, then you
might suddenly find yourself violating the new
ProhibtUnrestrictedNoCritic policy. To fix this, just make sure your
Policy names appear in parentheses:
## no critic Foo, Bar, Baz # wrong!
## no critic Foo Bar Baz # wrong!
## no critic (Foo, Bar, Baz) # ok!
## no critic qw(Foo Bar Baz) # also ok!
* The deprecated $FORMAT variables for Perl::Critic::Policy and
Perl::Critic::Violation no longer exist. Use the corresponding
get_format() and set_format() functions instead.
-- gregor herrmann <gregoa@debian.org> Thu, 12 Feb 2009 15:23:08 +0100

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
libperl-critic-perl (1.152-ok1) nile; urgency=medium
* Build for openKylin.
-- openKylinBot <openKylinBot@openkylin.top> Tue, 07 May 2024 09:42:56 +0800

68
debian/control vendored Normal file
View File

@ -0,0 +1,68 @@
Source: libperl-critic-perl
Maintainer: openKylin Developers <packaging@lists.openkylin.top>
Uploaders: Salvatore Bonaccorso <carnil@debian.org>,
gregor herrmann <gregoa@debian.org>,
Damyan Ivanov <dmn@debian.org>,
Ansgar Burchardt <ansgar@debian.org>
Section: perl
Testsuite: autopkgtest-pkg-perl
Priority: optional
Build-Depends: debhelper-compat (= 13),
libmodule-build-perl
Build-Depends-Indep: libb-keywords-perl (>= 1.23),
libconfig-tiny-perl <!nocheck>,
libexception-class-perl <!nocheck>,
libfile-which-perl <!nocheck>,
liblist-someutils-perl,
libmodule-pluggable-perl <!nocheck>,
libpod-parser-perl <!nocheck>,
libpod-spell-perl <!nocheck>,
libppi-perl (>= 1.277) <!nocheck>,
libppix-quotelike-perl <!nocheck>,
libppix-regexp-perl (>= 0.068) <!nocheck>,
libppix-utils-perl <!nocheck>,
libreadonly-perl <!nocheck>,
libscalar-list-utils-perl <!nocheck>,
libstring-format-perl <!nocheck>,
libtest-pod-coverage-perl <!nocheck>,
libtest-pod-perl <!nocheck>,
libtest-simple-perl <!nocheck>,
libversion-perl <!nocheck>,
perl,
perltidy <!nocheck>
Standards-Version: 4.6.2
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libperl-critic-perl
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libperl-critic-perl.git
Homepage: https://metacpan.org/release/Perl-Critic
Rules-Requires-Root: no
Package: libperl-critic-perl
Architecture: all
Depends: ${misc:Depends},
${perl:Depends},
libb-keywords-perl (>= 1.23),
libconfig-tiny-perl,
libexception-class-perl,
libfile-which-perl,
liblist-someutils-perl,
libmodule-pluggable-perl,
libpod-parser-perl,
libpod-spell-perl,
libppi-perl (>= 1.277),
libppix-quotelike-perl,
libppix-regexp-perl (>= 0.068),
libppix-utils-perl,
libreadonly-perl,
libscalar-list-utils-perl,
libstring-format-perl,
libtest-simple-perl,
libversion-perl,
perltidy
Description: Perl module to critique code for best practices
Perl::Critic is an extensible framework for creating and applying software
coding policies to Perl source code. By default, it is distributed with a
number of policy modules that attempt to enforce various coding guidelines,
including those discussed in Damian Conway's Perl Best Practices. However,
it is not limited to PBP and will even support policies that contradict PBP.
You can enable, disable and customize those policies through the Perl::Critic
interface. You can also create new Policy modules to suit your own tastes.

200
debian/copyright vendored Normal file
View File

@ -0,0 +1,200 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Perl-Critic
Upstream-Contact: Jeffrey Thalhammer <jeff@imaginative-software.com>
Source: https://metacpan.org/release/Perl-Critic
Files: *
Copyright: Copyright (c) 2005-2023 Imaginative Software Systems. All rights reserved.
License: Artistic or GPL-1+
Files: lib/Perl/Critic/Policy/BuiltinFunctions/ProhibitShiftRef.pm
Copyright: Copyright (c) 2018 cPanel, L.L.C.
License: Artistic or GPL-1+
Files: lib/Perl/Critic/Policy/Modules/RequireEndWithOne.pm
Copyright: Copyright (c) 2005-2011 Chris Dolan and Imaginative Software Systems. All rights reserved.
License: Artistic or GPL-1+
Files: lib/Perl/Critic/Document.pm
lib/Perl/Critic/Policy/BuiltinFunctions/ProhibitBooleanGrep.pm
lib/Perl/Critic/Policy/BuiltinFunctions/ProhibitComplexMappings.pm
lib/Perl/Critic/Policy/BuiltinFunctions/ProhibitReverseSortBlock.pm
lib/Perl/Critic/Policy/BuiltinFunctions/ProhibitUniversalCan.pm
lib/Perl/Critic/Policy/BuiltinFunctions/ProhibitUniversalIsa.pm
lib/Perl/Critic/Policy/BuiltinFunctions/RequireSimpleSortBlock.pm
lib/Perl/Critic/Policy/ClassHierarchies/ProhibitExplicitISA.pm
lib/Perl/Critic/Policy/CodeLayout/RequireConsistentNewlines.pm
lib/Perl/Critic/Policy/ControlStructures/ProhibitMutatingListFunctions.pm
lib/Perl/Critic/Policy/Documentation/PodSpelling.pm
lib/Perl/Critic/Policy/Documentation/RequirePackageMatchesPodName.pm
lib/Perl/Critic/Policy/Documentation/RequirePodAtEnd.pm
lib/Perl/Critic/Policy/InputOutput/ProhibitExplicitStdin.pm
lib/Perl/Critic/Policy/InputOutput/ProhibitInteractiveTest.pm
lib/Perl/Critic/Policy/InputOutput/ProhibitJoinedReadline.pm
lib/Perl/Critic/Policy/InputOutput/RequireBriefOpen.pm
lib/Perl/Critic/Policy/InputOutput/RequireCheckedSyscalls.pm
lib/Perl/Critic/Policy/Modules/RequireFilenameMatchesPackage.pm
lib/Perl/Critic/Policy/NamingConventions/ProhibitAmbiguousNames.pm
lib/Perl/Critic/Policy/RegularExpressions/ProhibitCaptureWithoutTest.pm
lib/Perl/Critic/Policy/RegularExpressions/ProhibitComplexRegexes.pm
lib/Perl/Critic/Policy/RegularExpressions/ProhibitEnumeratedClasses.pm
lib/Perl/Critic/Policy/RegularExpressions/ProhibitEscapedMetacharacters.pm
lib/Perl/Critic/Policy/RegularExpressions/ProhibitFixedStringMatches.pm
lib/Perl/Critic/Policy/RegularExpressions/ProhibitSingleCharAlternation.pm
lib/Perl/Critic/Policy/RegularExpressions/ProhibitUnusedCapture.pm
lib/Perl/Critic/Policy/RegularExpressions/ProhibitUnusualDelimiters.pm
lib/Perl/Critic/Policy/RegularExpressions/RequireBracesForMultiline.pm
lib/Perl/Critic/Policy/Subroutines/ProhibitManyArgs.pm
lib/Perl/Critic/Policy/Subroutines/ProtectPrivateSubs.pm
lib/Perl/Critic/Policy/Subroutines/RequireArgUnpacking.pm
lib/Perl/Critic/Policy/Subroutines/RequireFinalReturn.pm
lib/Perl/Critic/Policy/TestingAndDebugging/ProhibitProlongedStrictureOverride.pm
lib/Perl/Critic/Policy/TestingAndDebugging/RequireTestLabels.pm
lib/Perl/Critic/Policy/ValuesAndExpressions/ProhibitEscapedCharacters.pm
lib/Perl/Critic/Policy/ValuesAndExpressions/ProhibitImplicitNewlines.pm
lib/Perl/Critic/Policy/Variables/ProhibitConditionalDeclarations.pm
lib/Perl/Critic/Policy/Variables/ProhibitMatchVars.pm
lib/Perl/Critic/Policy/Variables/ProhibitReusedNames.pm
lib/Perl/Critic/Policy/Variables/ProtectPrivateVars.pm
lib/Perl/Critic/Policy/Variables/RequireLocalizedPunctuationVars.pm
lib/Perl/Critic/Policy/Variables/RequireNegativeIndices.pm
lib/Perl/Critic/TestUtils.pm
Copyright: Copyright (c) 2005-2023 Chris Dolan.
License: Artistic or GPL-1+
Files: lib/Perl/Critic/Policy/InputOutput/ProhibitOneArgSelect.pm
lib/Perl/Critic/Policy/BuiltinFunctions/ProhibitSleepViaSelect.pm
lib/Perl/Critic/Policy/BuiltinFunctions/ProhibitLvalueSubstr.pm
lib/Perl/Critic/Policy/BuiltinFunctions/RequireGlobFunction.pm
Copyright: Copyright (c) 2005-2011 Graham TerMarsch. All rights reserved.
License: Artistic or GPL-1+
Files: examples/generatestats
examples/loadanalysisdb
inc/Perl/Critic/BuildUtilities.pm
inc/Perl/Critic/Module/Build.pm
inc/Perl/Critic/Module/Build/Standard.pm
lib/Perl/Critic/Exception.pm
lib/Perl/Critic/Exception/AggregateConfiguration.pm
lib/Perl/Critic/Exception/Configuration.pm
lib/Perl/Critic/Exception/Configuration/Generic.pm
lib/Perl/Critic/Exception/Configuration/NonExistentPolicy.pm
lib/Perl/Critic/Exception/Configuration/Option.pm
lib/Perl/Critic/Exception/Configuration/Option/Global.pm
lib/Perl/Critic/Exception/Configuration/Option/Global/ExtraParameter.pm
lib/Perl/Critic/Exception/Configuration/Option/Global/ParameterValue.pm
lib/Perl/Critic/Exception/Configuration/Option/Policy.pm
lib/Perl/Critic/Exception/Configuration/Option/Policy/ExtraParameter.pm
lib/Perl/Critic/Exception/Configuration/Option/Policy/ParameterValue.pm
lib/Perl/Critic/Exception/Fatal.pm
lib/Perl/Critic/Exception/Fatal/Generic.pm
lib/Perl/Critic/Exception/Fatal/Internal.pm
lib/Perl/Critic/Exception/Fatal/PolicyDefinition.pm
lib/Perl/Critic/Exception/IO.pm
lib/Perl/Critic/Exception/Parse.pm
lib/Perl/Critic/Policy/CodeLayout/ProhibitTrailingWhitespace.pm
lib/Perl/Critic/Policy/ControlStructures/ProhibitNegativeExpressionsInUnlessAndUntilConditions.pm
lib/Perl/Critic/Policy/ErrorHandling/RequireCheckingReturnValueOfEval.pm
lib/Perl/Critic/Policy/Modules/RequireNoMatchVarsWithUseEnglish.pm
lib/Perl/Critic/Policy/ValuesAndExpressions/ProhibitCommaSeparatedStatements.pm
lib/Perl/Critic/Policy/ValuesAndExpressions/ProhibitLongChainsOfMethodCalls.pm
lib/Perl/Critic/Policy/ValuesAndExpressions/ProhibitMagicNumbers.pm
lib/Perl/Critic/Policy/ValuesAndExpressions/ProhibitQuotesAsQuotelikeOperatorDelimiters.pm
lib/Perl/Critic/Policy/Variables/ProhibitPerl4PackageNames.pm
lib/Perl/Critic/Policy/Variables/ProhibitUnusedVariables.pm
lib/Perl/Critic/PolicyConfig.pm
lib/Perl/Critic/PolicyParameter.pm
lib/Perl/Critic/PolicyParameter/Behavior.pm
lib/Perl/Critic/PolicyParameter/Behavior/Boolean.pm
lib/Perl/Critic/PolicyParameter/Behavior/Enumeration.pm
lib/Perl/Critic/PolicyParameter/Behavior/Integer.pm
lib/Perl/Critic/PolicyParameter/Behavior/String.pm
lib/Perl/Critic/PolicyParameter/Behavior/StringList.pm
lib/Perl/Critic/Statistics.pm
lib/Perl/Critic/Utils/Constants.pm
lib/Perl/Critic/Utils/POD.pm
lib/Perl/Critic/Utils/PPI.pm
lib/Perl/Critic/Utils/Perl.pm
Copyright: Copyright (c) 2006-2023 Elliot Shank.
License: Artistic or GPL-1+
Files: lib/Perl/Critic/Policy/ControlStructures/ProhibitUnreachableCode.pm
lib/Perl/Critic/Policy/Modules/ProhibitConditionalUseStatements.pm
lib/Perl/Critic/Policy/ValuesAndExpressions/ProhibitMismatchedOperators.pm
Copyright: Copyright (c) 2006-2022 Peter Guzis. All rights reserved.
License: Artistic or GPL-1+
Files: lib/Perl/Critic/Policy/InputOutput/RequireCheckedOpen.pm
lib/Perl/Critic/Policy/InputOutput/RequireCheckedClose.pm
Copyright: Copyright (c) 2007-2011 Andrew Moore. All rights reserved.
License: Artistic or GPL-1+
Files: lib/Perl/Critic/Policy/Subroutines/ProhibitNestedSubs.pm
Copyright: Copyright (c) 2007-2011 Ricardo SIGNES.
License: Artistic or GPL-1+
Files: lib/Perl/Critic/Policy/NamingConventions/Capitalization.pm
Copyright: Copyright (c) 2008-2023 Michael G Schwern. All rights reserved.
License: Artistic or GPL-1+
Files: lib/Perl/Critic/Policy/ControlStructures/ProhibitLabelsWithSpecialBlockNames.pm
lib/Perl/Critic/Policy/Variables/ProhibitAugmentedAssignmentInDeclaration.pm
Copyright: Copyright (c) 2008-2023 Mike O'Regan. All rights reserved.
License: Artistic or GPL-1+
Files: lib/Test/Perl/Critic/Policy.pm
lib/Perl/Critic/Policy/BuiltinFunctions/ProhibitUselessTopic.pm
lib/Perl/Critic/Policy/RegularExpressions/ProhibitUselessTopic.pm
Copyright: Copyright (c) 2009-2022 Andy Lester. All rights reserved.
License: Artistic or GPL-1+
Files: lib/Perl/Critic/Policy/ValuesAndExpressions/ProhibitSpecialLiteralHeredocTerminator.pm
Copyright: Copyright (c) 2009-2011 Kyle Hasselbacher.
License: Artistic or GPL-1+
Files: lib/Perl/Critic/CORE_DEVELOPER.pod
lib/Perl/Critic/Policy/InputOutput/RequireEncodingWithUTF8Layer.pm
lib/Perl/Critic/Policy/Objects/ProhibitIndirectSyntax.pm
lib/Perl/Critic/Policy/Subroutines/ProhibitUnusedPrivateSubroutines.pm
lib/Perl/Critic/Policy/ValuesAndExpressions/ProhibitComplexVersion.pm
lib/Perl/Critic/Policy/ValuesAndExpressions/RequireConstantVersion.pm
lib/Perl/Critic/Policy/Variables/ProhibitEvilVariables.pm
Copyright: Copyright (c) 2009-2021 Thomas R. Wyant, III
License: Artistic or GPL-1+
Files: lib/Perl/Critic/Policy/ControlStructures/ProhibitYadaOperator.pm
Copyright: 2015-2017, Alan Berndt <alan@eatabrick.org>
License: Artistic or GPL-1+
Files: inc/Devel/AssertOS.pm
inc/Devel/AssertOS/Solaris.pm
inc/Devel/CheckOS.pm
Copyright: Copyright 2007 - 2008 David Cantrell
License: Artistic or GPL-1+
Files: debian/*
Copyright: 2007, 2008, Damyan Ivanov <dmn@debian.org>
2007, Joey Hess <joeyh@debian.org>
2008, Maximilian Gaß <mxey@cloudconnected.org>
2008-2023, gregor herrmann <gregoa@debian.org>
2009-2020, Salvatore Bonaccorso <carnil@debian.org>
2009, Antonio Radici <antonio@dyne.org>
2009, Jonathan Yu <frequency@cpan.org>
2010, Ansgar Burchardt <ansgar@debian.org>
License: Artistic or GPL-1+
License: Artistic
This program is free software; you can redistribute it and/or modify
it under the terms of the Artistic License, which comes with Perl.
.
On Debian systems, the complete text of the Artistic License can be
found in `/usr/share/common-licenses/Artistic'.
License: GPL-1+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 1, or (at your option)
any later version.
.
On Debian systems, the complete text of version 1 of the GNU General
Public License can be found in `/usr/share/common-licenses/GPL-1'.

17
debian/emacsen-startup vendored Normal file
View File

@ -0,0 +1,17 @@
;; -*- mode: emacs-lisp -*-
(if (not (file-exists-p "/usr/share/emacs/site-lisp/perlcritic.el"))
(message "libperl-critic-perl removed but not purged, skipping setup")
;; these setups as recommended in the perlcritic.el comments
(autoload 'perlcritic "perlcritic" nil t)
(autoload 'perlcritic-region "perlcritic" nil t)
(autoload 'perlcritic-mode "perlcritic" nil t)
;; these per the suggested add-hooks in the perlcritic.el comments, but
;; just offered as options
(custom-add-option 'perl-mode-hook 'perlcritic-mode)
(custom-add-option 'cperl-mode-hook 'perlcritic-mode))
(if (fboundp 'conf-mode) ;; new in emacs22
(add-to-list 'auto-mode-alist '("/\\.perlcriticrc\\'" . conf-mode)))

1
debian/libperl-critic-perl.docs vendored Normal file
View File

@ -0,0 +1 @@
CONTRIBUTING.md

2
debian/libperl-critic-perl.examples vendored Normal file
View File

@ -0,0 +1,2 @@
examples/*
tools/ppidump

1
debian/libperl-critic-perl.install vendored Normal file
View File

@ -0,0 +1 @@
extras/perlcritic.el usr/share/emacs/site-lisp

11
debian/rules vendored Executable file
View File

@ -0,0 +1,11 @@
#!/usr/bin/make -f
PACKAGE = $(shell dh_listpackages)
TMP = $(CURDIR)/debian/$(PACKAGE)
%:
dh $@
override_dh_installexamples:
dh_installexamples
sed -i '1s|^#!/usr/bin/env perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/ppidump

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

2
debian/tests/pkg-perl/SKIP vendored Normal file
View File

@ -0,0 +1,2 @@
# way too many failures
smoke

6
debian/upstream/metadata vendored Normal file
View File

@ -0,0 +1,6 @@
---
Archive: CPAN
Bug-Database: https://github.com/Perl-Critic/Perl-Critic/issues
Bug-Submit: https://github.com/Perl-Critic/Perl-Critic/issues/new
Repository: https://github.com/Perl-Critic/Perl-Critic.git
Repository-Browse: https://github.com/Perl-Critic/Perl-Critic

2
debian/watch vendored Normal file
View File

@ -0,0 +1,2 @@
version=4
https://metacpan.org/release/Perl-Critic .*/Perl-Critic-v?@ANY_VERSION@@ARCHIVE_EXT@$