Hello community,
here is the log from the commit of package perl-Class-Inspector for openSUSE:Factory checked in at 2019-07-29 17:22:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Class-Inspector (Old)
and /work/SRC/openSUSE:Factory/.perl-Class-Inspector.new.4126 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Class-Inspector"
Mon Jul 29 17:22:48 2019 rev:33 rq:717449 version:1.36
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Class-Inspector/perl-Class-Inspector.changes 2019-04-02 09:17:35.572486801 +0200
+++ /work/SRC/openSUSE:Factory/.perl-Class-Inspector.new.4126/perl-Class-Inspector.changes 2019-07-29 17:22:49.766381324 +0200
@@ -1,0 +2,12 @@
+Sun Jul 21 11:13:10 UTC 2019 - Stephan Kulow
+
+- updated to 1.36
+ see /usr/share/doc/packages/perl-Class-Inspector/Changes
+
+ 1.36 2019-07-19 08:35:53 -0400
+ - Producton release identical to 1.35_01
+
+ 1.35_01 2019-07-18 12:00:22 -0400
+ - Fix bug in methods method that could cause it to modify @ISA (gh#11)
+
+-------------------------------------------------------------------
Old:
----
Class-Inspector-1.34.tar.gz
New:
----
Class-Inspector-1.36.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Class-Inspector.spec ++++++
--- /var/tmp/diff_new_pack.bRE8ho/_old 2019-07-29 17:22:50.406381087 +0200
+++ /var/tmp/diff_new_pack.bRE8ho/_new 2019-07-29 17:22:50.414381084 +0200
@@ -17,7 +17,7 @@
Name: perl-Class-Inspector
-Version: 1.34
+Version: 1.36
Release: 0
%define cpan_name Class-Inspector
Summary: Get information about a class and its structure
++++++ Class-Inspector-1.34.tar.gz -> Class-Inspector-1.36.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Inspector-1.34/Changes new/Class-Inspector-1.36/Changes
--- old/Class-Inspector-1.34/Changes 2019-03-28 17:13:43.000000000 +0100
+++ new/Class-Inspector-1.36/Changes 2019-07-19 14:35:55.000000000 +0200
@@ -1,5 +1,11 @@
Revision history for Perl extension Class-Inspector
+1.36 2019-07-19 08:35:53 -0400
+ - Producton release identical to 1.35_01
+
+1.35_01 2019-07-18 12:00:22 -0400
+ - Fix bug in methods method that could cause it to modify @ISA (gh#11)
+
1.34 2019-03-28 12:13:40 -0400
- Producton release identical to 1.33_01
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Inspector-1.34/MANIFEST new/Class-Inspector-1.36/MANIFEST
--- old/Class-Inspector-1.34/MANIFEST 2019-03-28 17:13:43.000000000 +0100
+++ new/Class-Inspector-1.36/MANIFEST 2019-07-19 14:35:55.000000000 +0200
@@ -12,12 +12,15 @@
lib/Class/Inspector.pm
lib/Class/Inspector/Functions.pm
maint/cip-before-install
+maint/cip-test
+perlcriticrc
t/00_diag.t
t/01_use.t
t/class_inspector.t
t/class_inspector__devel_hide.t
t/class_inspector__inc_to_local.t
t/class_inspector_functions.t
+xt/author/critic.t
xt/author/eol.t
xt/author/no_tabs.t
xt/author/pod.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Inspector-1.34/META.json new/Class-Inspector-1.36/META.json
--- old/Class-Inspector-1.34/META.json 2019-03-28 17:13:43.000000000 +0100
+++ new/Class-Inspector-1.36/META.json 2019-07-19 14:35:55.000000000 +0200
@@ -18,12 +18,13 @@
"configure" : {
"requires" : {
"ExtUtils::MakeMaker" : "0",
- "perl" : "5.006"
+ "perl" : "5.008"
}
},
"develop" : {
"requires" : {
"FindBin" : "0",
+ "Test2::Tools::PerlCritic" : "0",
"Test::EOL" : "0",
"Test::Fixme" : "0.07",
"Test::More" : "0.98",
@@ -38,24 +39,25 @@
"runtime" : {
"requires" : {
"File::Spec" : "0.80",
- "perl" : "5.006"
+ "base" : "0",
+ "perl" : "5.008"
}
},
"test" : {
"requires" : {
"Test::More" : "0.98",
- "perl" : "5.006"
+ "perl" : "5.008"
}
}
},
"provides" : {
"Class::Inspector" : {
"file" : "lib/Class/Inspector.pm",
- "version" : "1.34"
+ "version" : "1.36"
},
"Class::Inspector::Functions" : {
"file" : "lib/Class/Inspector/Functions.pm",
- "version" : "1.34"
+ "version" : "1.36"
}
},
"release_status" : "stable",
@@ -70,7 +72,7 @@
"web" : "https://github.com/plicease/Class-Inspector"
}
},
- "version" : "1.34",
+ "version" : "1.36",
"x_contributors" : [
"Adam Kennedy ",
"Graham Ollis ",
@@ -78,8 +80,8 @@
"Steffen M\u00fcller",
"Kivanc Yazan (KYZN)"
],
- "x_generated_by_perl" : "v5.26.2",
- "x_serialization_backend" : "Cpanel::JSON::XS version 4.09",
+ "x_generated_by_perl" : "v5.28.1",
+ "x_serialization_backend" : "Cpanel::JSON::XS version 4.12",
"x_use_unsafe_inc" : 0
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Inspector-1.34/META.yml new/Class-Inspector-1.36/META.yml
--- old/Class-Inspector-1.34/META.yml 2019-03-28 17:13:43.000000000 +0100
+++ new/Class-Inspector-1.36/META.yml 2019-07-19 14:35:55.000000000 +0200
@@ -5,10 +5,10 @@
- 'Adam Kennedy '
build_requires:
Test::More: '0.98'
- perl: '5.006'
+ perl: '5.008'
configure_requires:
ExtUtils::MakeMaker: '0'
- perl: '5.006'
+ perl: '5.008'
dynamic_config: 0
generated_by: 'Dist::Zilla version 6.012, CPAN::Meta::Converter version 2.150010'
license: perl
@@ -19,24 +19,25 @@
provides:
Class::Inspector:
file: lib/Class/Inspector.pm
- version: '1.34'
+ version: '1.36'
Class::Inspector::Functions:
file: lib/Class/Inspector/Functions.pm
- version: '1.34'
+ version: '1.36'
requires:
File::Spec: '0.80'
- perl: '5.006'
+ base: '0'
+ perl: '5.008'
resources:
bugtracker: https://github.com/plicease/Class-Inspector/issues
homepage: https://metacpan.org/pod/Class::Inspector
repository: git://github.com/plicease/Class-Inspector.git
-version: '1.34'
+version: '1.36'
x_contributors:
- 'Adam Kennedy '
- 'Graham Ollis '
- 'Tom Wyant'
- 'Steffen Müller'
- 'Kivanc Yazan (KYZN)'
-x_generated_by_perl: v5.26.2
+x_generated_by_perl: v5.28.1
x_serialization_backend: 'YAML::Tiny version 1.73'
x_use_unsafe_inc: 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Inspector-1.34/Makefile.PL new/Class-Inspector-1.36/Makefile.PL
--- old/Class-Inspector-1.34/Makefile.PL 2019-03-28 17:13:43.000000000 +0100
+++ new/Class-Inspector-1.36/Makefile.PL 2019-07-19 14:35:55.000000000 +0200
@@ -11,15 +11,15 @@
exit;
}
}
- unless(eval q{ use 5.006; 1}) {
- print "Perl 5.006 or better required\n";
+ unless(eval q{ use 5.008; 1}) {
+ print "Perl 5.008 or better required\n";
exit;
}
}
-# This file was automatically generated by Dist::Zilla::Plugin::Author::Plicease::MakeMaker v2.36.
+# This file was automatically generated by Dist::Zilla::Plugin::Author::Plicease::MakeMaker v2.37.
use strict;
use warnings;
-use 5.006;
+use 5.008;
use ExtUtils::MakeMaker;
my %WriteMakefileArgs = (
@@ -30,19 +30,20 @@
},
"DISTNAME" => "Class-Inspector",
"LICENSE" => "perl",
- "MIN_PERL_VERSION" => "5.006",
+ "MIN_PERL_VERSION" => "5.008",
"NAME" => "Class::Inspector",
"PM" => {
"lib/Class/Inspector.pm" => "\$(INST_LIB)/Class/Inspector.pm",
"lib/Class/Inspector/Functions.pm" => "\$(INST_LIB)/Class/Inspector/Functions.pm"
},
"PREREQ_PM" => {
- "File::Spec" => "0.80"
+ "File::Spec" => "0.80",
+ "base" => 0
},
"TEST_REQUIRES" => {
"Test::More" => "0.98"
},
- "VERSION" => "1.34",
+ "VERSION" => "1.36",
"test" => {
"TESTS" => "t/*.t"
}
@@ -50,7 +51,8 @@
my %FallbackPrereqs = (
"File::Spec" => "0.80",
- "Test::More" => "0.98"
+ "Test::More" => "0.98",
+ "base" => 0
);
unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Inspector-1.34/README new/Class-Inspector-1.36/README
--- old/Class-Inspector-1.34/README 2019-03-28 17:13:43.000000000 +0100
+++ new/Class-Inspector-1.36/README 2019-07-19 14:35:55.000000000 +0200
@@ -4,7 +4,7 @@
VERSION
- version 1.34
+ version 1.36
SYNOPSIS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Inspector-1.34/dist.ini new/Class-Inspector-1.36/dist.ini
--- old/Class-Inspector-1.34/dist.ini 2019-03-28 17:13:43.000000000 +0100
+++ new/Class-Inspector-1.36/dist.ini 2019-07-19 14:35:55.000000000 +0200
@@ -4,10 +4,10 @@
license = Perl_5
copyright_holder = Adam Kennedy
copyright_year = 2002-2019
-version = 1.34
+version = 1.36
[@Author::Plicease]
-:version = 2.21
+:version = 2.37
travis_status = 1
release_tests = 1
@@ -36,8 +36,12 @@
remove = strict
remove = warnings
remove = vars
-remove = Exporter
remove = constant
+remove = utf8
+remove = Exporter
+
+; optional test dep
+remove = Devel::Hide
[Author::Plicease::Upload]
cpan = 1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Inspector-1.34/lib/Class/Inspector/Functions.pm new/Class-Inspector-1.36/lib/Class/Inspector/Functions.pm
--- old/Class-Inspector-1.34/lib/Class/Inspector/Functions.pm 2019-03-28 17:13:43.000000000 +0100
+++ new/Class-Inspector-1.36/lib/Class/Inspector/Functions.pm 2019-07-19 14:35:55.000000000 +0200
@@ -5,13 +5,12 @@
use warnings;
use Exporter ();
use Class::Inspector ();
+use base qw( Exporter );
# ABSTRACT: Get information about a class and its structure
-our $VERSION = '1.34'; # VERSION
+our $VERSION = '1.36'; # VERSION
BEGIN {
- our @ISA = 'Exporter';
-
our @EXPORT = qw(
installed
@@ -58,7 +57,7 @@
=head1 VERSION
-version 1.34
+version 1.36
=head1 SYNOPSIS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Inspector-1.34/lib/Class/Inspector.pm new/Class-Inspector-1.36/lib/Class/Inspector.pm
--- old/Class-Inspector-1.34/lib/Class/Inspector.pm 2019-03-28 17:13:43.000000000 +0100
+++ new/Class-Inspector-1.36/lib/Class/Inspector.pm 2019-07-19 14:35:55.000000000 +0200
@@ -8,7 +8,7 @@
use File::Spec ();
# ABSTRACT: Get information about a class and its structure
-our $VERSION = '1.34'; # VERSION
+our $VERSION = '1.36'; # VERSION
# If Unicode is available, enable it so that the
@@ -16,7 +16,10 @@
# We can safely ignore any failure here.
BEGIN {
local $@;
- eval "require utf8; utf8->import";
+ eval {
+ require utf8;
+ utf8->import;
+ };
}
# Predefine some regexs
@@ -223,7 +226,8 @@
while ( my $cl = shift @queue ) {
push @path, $cl;
unshift @queue, grep { ! $seen{$_}++ }
- map { s/^::/main::/; s/\'/::/g; $_ }
+ map { s/^::/main::/; s/\'/::/g; $_ } ## no critic
+ map { "$_" }
( @{"${cl}::ISA"} );
}
@@ -299,7 +303,7 @@
sub _subnames {
my ($class, $name) = @_;
return sort
- grep {
+ grep { ## no critic
substr($_, -2, 2, '') eq '::'
and
/$RE_IDENTIFIER/o
@@ -325,7 +329,7 @@
# Find all the Foo:: elements in our symbol table
no strict 'refs';
- map { "${name}::$_" } sort grep { s/::$// } keys %{"${name}::"};
+ map { "${name}::$_" } sort grep { s/::$// } keys %{"${name}::"}; ## no critic
}
# As above, but recursively
@@ -341,7 +345,7 @@
while ( my $namespace = $children[$i++] ) {
push @children, map { "${namespace}::$_" }
grep { ! /^::/ } # Ignore things like ::ISA::CACHE::
- grep { s/::$// }
+ grep { s/::$// } ## no critic
keys %{"${namespace}::"};
}
@@ -406,7 +410,7 @@
=head1 VERSION
-version 1.34
+version 1.36
=head1 SYNOPSIS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Inspector-1.34/maint/cip-before-install new/Class-Inspector-1.36/maint/cip-before-install
--- old/Class-Inspector-1.34/maint/cip-before-install 2019-03-28 17:13:43.000000000 +0100
+++ new/Class-Inspector-1.36/maint/cip-before-install 2019-07-19 14:35:55.000000000 +0200
@@ -3,3 +3,10 @@
set -ex
cip exec cpanm Devel::Hide
+cip sudo dzil-cpanm Dist::Zilla::Plugin::OurPkgVersion
+
+if [ ! -z "$PERL_CRITIC" ]; then
+ cip exec cpanm -n Perl::Critic Perl::Critic::Freenode https://dist.wdlabs.com/Test2-Tools-PerlCritic-0.01.tar.gz
+ cip exec cpanm -n Test::EOL Test::Pod Test::Pod::Coverage Test::Pod::Spelling::CommonMistakes Test::Strict Test::Version Test::Fixme \
+ Test::NoTabs YAML
+fi
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Inspector-1.34/maint/cip-test new/Class-Inspector-1.36/maint/cip-test
--- old/Class-Inspector-1.34/maint/cip-test 1970-01-01 01:00:00.000000000 +0100
+++ new/Class-Inspector-1.36/maint/cip-test 2019-07-19 14:35:55.000000000 +0200
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+set -ex
+
+perl Makefile.PL
+make
+make test TEST_VERBOSE=1
+prove -lr xt
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Inspector-1.34/perlcriticrc new/Class-Inspector-1.36/perlcriticrc
--- old/Class-Inspector-1.34/perlcriticrc 1970-01-01 01:00:00.000000000 +0100
+++ new/Class-Inspector-1.36/perlcriticrc 2019-07-19 14:35:55.000000000 +0200
@@ -0,0 +1,60 @@
+severity = 1
+only = 1
+
+[Freenode::ArrayAssignAref]
+[Freenode::BarewordFilehandles]
+[Freenode::ConditionalDeclarations]
+[Freenode::ConditionalImplicitReturn]
+[Freenode::DeprecatedFeatures]
+[Freenode::DiscouragedModules]
+[Freenode::DollarAB]
+[Freenode::Each]
+[Freenode::EmptyReturn]
+[Freenode::IndirectObjectNotation]
+[Freenode::LexicalForeachIterator]
+[Freenode::LoopOnHash]
+[Freenode::ModPerl]
+[Freenode::OpenArgs]
+[Freenode::OverloadOptions]
+[Freenode::POSIXImports]
+[Freenode::PackageMatchesFilename]
+[Freenode::PreferredAlternatives]
+[Freenode::Prototypes]
+[Freenode::StrictWarnings]
+extra_importers = Test2::V0
+[Freenode::Threads]
+[Freenode::Wantarray]
+[Freenode::WarningsSwitch]
+[Freenode::WhileDiamondDefaultAssignment]
+
+[BuiltinFunctions::ProhibitBooleanGrep]
+[BuiltinFunctions::ProhibitStringyEval]
+[BuiltinFunctions::ProhibitStringySplit]
+[BuiltinFunctions::ProhibitVoidGrep]
+[BuiltinFunctions::ProhibitVoidMap]
+[ClassHierarchies::ProhibitExplicitISA]
+[ClassHierarchies::ProhibitOneArgBless]
+[CodeLayout::ProhibitHardTabs]
+allow_leading_tabs = 0
+[CodeLayout::ProhibitTrailingWhitespace]
+[CodeLayout::RequireConsistentNewlines]
+[ControlStructures::ProhibitLabelsWithSpecialBlockNames]
+[ControlStructures::ProhibitMutatingListFunctions]
+[ControlStructures::ProhibitUnreachableCode]
+[InputOutput::ProhibitBarewordFileHandles]
+[InputOutput::ProhibitJoinedReadline]
+[InputOutput::ProhibitTwoArgOpen]
+[Miscellanea::ProhibitFormats]
+[Miscellanea::ProhibitUselessNoCritic]
+[Modules::ProhibitConditionalUseStatements]
+;[Modules::RequireEndWithOne]
+[Modules::RequireNoMatchVarsWithUseEnglish]
+[Objects::ProhibitIndirectSyntax]
+[RegularExpressions::ProhibitUselessTopic]
+[Subroutines::ProhibitNestedSubs]
+[ValuesAndExpressions::ProhibitLeadingZeros]
+[ValuesAndExpressions::ProhibitMixedBooleanOperators]
+[ValuesAndExpressions::ProhibitSpecialLiteralHeredocTerminator]
+[ValuesAndExpressions::RequireUpperCaseHeredocTerminator]
+[Variables::ProhibitPerl4PackageNames]
+[Variables::ProhibitUnusedVariables]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Inspector-1.34/t/00_diag.t new/Class-Inspector-1.36/t/00_diag.t
--- old/Class-Inspector-1.34/t/00_diag.t 2019-03-28 17:13:43.000000000 +0100
+++ new/Class-Inspector-1.36/t/00_diag.t 2019-07-19 14:35:55.000000000 +0200
@@ -30,7 +30,7 @@
my $max = 1;
$max = $_ > $max ? $_ : $max for map { length $_ } @modules;
-our $format = "%-${max}s %s";
+our $format = "%-${max}s %s";
spacer;
@@ -39,13 +39,13 @@
if(@keys > 0)
{
diag "$_=$ENV{$_}" for @keys;
-
+
if($ENV{PERL5LIB})
{
spacer;
diag "PERL5LIB path";
diag $_ for split $Config{path_sep}, $ENV{PERL5LIB};
-
+
}
elsif($ENV{PERLLIB})
{
@@ -53,7 +53,7 @@
diag "PERLLIB path";
diag $_ for split $Config{path_sep}, $ENV{PERLLIB};
}
-
+
spacer;
}
@@ -61,9 +61,11 @@
foreach my $module (@modules)
{
- if(eval qq{ require $module; 1 })
+ my $pm = "$module.pm";
+ $pm =~ s{::}{/}g;
+ if(eval { require $pm; 1 })
{
- my $ver = eval qq{ \$$module\::VERSION };
+ my $ver = eval { $module->VERSION };
$ver = 'undef' unless defined $ver;
diag sprintf $format, $module, $ver;
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Inspector-1.34/t/class_inspector.t new/Class-Inspector-1.36/t/class_inspector.t
--- old/Class-Inspector-1.34/t/class_inspector.t 2019-03-28 17:13:43.000000000 +0100
+++ new/Class-Inspector-1.36/t/class_inspector.t 2019-07-19 14:35:55.000000000 +0200
@@ -4,7 +4,7 @@
use strict;
use warnings;
-use Test::More tests => 54;
+use Test::More tests => 56;
use Class::Inspector ();
# To make maintaining this a little faster,
@@ -313,10 +313,25 @@
our $VERSION = '0.01';
package My::Bar;
our $VERSION = '0.01';
- our @ISA = 'My::Foo';
+ use base qw( My::Foo );
}
TESTS: {
my $rv = Class::Inspector->subclasses( 'My::Foo' );
is_deeply( $rv, [ 'My::Bar' ],
'->subclasses in the presence of an evil ->isa does not crash' );
}
+
+
+{
+ {
+ package Baz;
+
+ our @ISA = qw( ::foo bar'baz ); ## no critic
+ }
+
+ is_deeply \@Baz::ISA, [qw( ::foo bar'baz )];
+
+ Class::Inspector->methods('Baz');
+
+ is_deeply \@Baz::ISA, [qw( ::foo bar'baz )];
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Inspector-1.34/t/class_inspector__devel_hide.t new/Class-Inspector-1.36/t/class_inspector__devel_hide.t
--- old/Class-Inspector-1.34/t/class_inspector__devel_hide.t 2019-03-28 17:13:43.000000000 +0100
+++ new/Class-Inspector-1.36/t/class_inspector__devel_hide.t 2019-07-19 14:35:55.000000000 +0200
@@ -3,7 +3,7 @@
use Test::More;
use Class::Inspector;
-eval q{ use Devel::Hide };
+eval { require Devel::Hide };
plan skip_all => 'test requires Devel::Hide' if $@;
plan tests => 2;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Inspector-1.34/t/class_inspector_functions.t new/Class-Inspector-1.36/t/class_inspector_functions.t
--- old/Class-Inspector-1.34/t/class_inspector_functions.t 2019-03-28 17:13:43.000000000 +0100
+++ new/Class-Inspector-1.36/t/class_inspector_functions.t 2019-07-19 14:35:55.000000000 +0200
@@ -114,5 +114,5 @@
open my $fh, '<', __FILE__;
return $fh;
}
- return;
+ return ();
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Class-Inspector-1.34/xt/author/critic.t new/Class-Inspector-1.36/xt/author/critic.t
--- old/Class-Inspector-1.34/xt/author/critic.t 1970-01-01 01:00:00.000000000 +0100
+++ new/Class-Inspector-1.36/xt/author/critic.t 2019-07-19 14:35:55.000000000 +0200
@@ -0,0 +1,22 @@
+use strict;
+use warnings;
+use Test::More;
+
+BEGIN {
+ if(eval { require Test2::Tools::PerlCritic; 1 })
+ {
+ Test2::Tools::PerlCritic->import;
+ }
+ else
+ {
+ plan skip_all => 'Test requires Test2::Tools::PerlCritic';
+ }
+}
+
+my $critic = Perl::Critic->new(
+ -profile => 'perlcriticrc',
+);
+
+perl_critic_ok ['lib','t'], $critic;
+
+done_testing;