Skip to content

Commit

Permalink
Merge pull request #2178 from RotherOSS/issue-#2177-dumper
Browse files Browse the repository at this point in the history
Issue #2177: TidyAll::Plugin::OTOBO::Perl::Dumper is gone
  • Loading branch information
bschmalhofer authored Feb 18, 2023
2 parents e22f4fe + b8a6ec2 commit f981d1e
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 24 deletions.
6 changes: 2 additions & 4 deletions Kernel/Modules/AdminProcessManagement.pm
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@

package Kernel::Modules::AdminProcessManagement;

## nofilter(TidyAll::Plugin::OTOBO::Perl::Dumper)

use v5.24;
use strict;
use warnings;
use v5.24;
use utf8;

# core modules
use Data::Dumper;
use Data::Dumper; ## no critic qw(Modules::ProhibitEvilModules)

# CPAN modules

Expand Down
3 changes: 1 addition & 2 deletions Kernel/System/Log.pm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package Kernel::System::Log;

## nofilter(TidyAll::Plugin::OTOBO::Perl::PODSpelling)
## nofilter(TidyAll::Plugin::OTOBO::Perl::Time)
## nofilter(TidyAll::Plugin::OTOBO::Perl::Dumper)
## nofilter(TidyAll::Plugin::OTOBO::Perl::Require)
## nofilter(TidyAll::Plugin::OTOBO::Perl::ParamObject)

Expand Down Expand Up @@ -417,7 +416,7 @@ dump a perl variable to log
sub Dumper {
my ( $Self, @Data ) = @_;

require Data::Dumper;
require Data::Dumper; ## no critic qw(Modules::ProhibitEvilModules)

# returns the context of the current subroutine and sub-subroutine!
my ( $Package1, $Filename1, $Line1, $Subroutine1 ) = caller(0);
Expand Down
3 changes: 1 addition & 2 deletions Kernel/System/Main.pm
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@
# --

package Kernel::System::Main;
## nofilter(TidyAll::Plugin::OTOBO::Perl::Dumper)
## nofilter(TidyAll::Plugin::OTOBO::Perl::Require)

use strict;
use warnings;

# core modules
use Digest::MD5 qw(md5_hex);
use Data::Dumper;
use Data::Dumper; ## no critic qw(Modules::ProhibitEvilModules)
use File::stat;
use Unicode::Normalize;
use List::Util qw(first);
Expand Down
3 changes: 1 addition & 2 deletions Kernel/System/MigrateFromOTRS/Base.pm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# --

package Kernel::System::MigrateFromOTRS::Base;
## nofilter(TidyAll::Plugin::OTOBO::Perl::Dumper)
## nofilter(TidyAll::Plugin::OTOBO::Common::CustomizationMarkers)

use strict;
Expand All @@ -26,7 +25,7 @@ use utf8;

# core modules
use List::Util qw(first);
use Data::Dumper;
use Data::Dumper; ## no critic qw(Modules::ProhibitEvilModules)
use File::Basename qw(basename dirname fileparse);
use File::Copy qw(move);
use File::Path qw(make_path);
Expand Down
3 changes: 1 addition & 2 deletions bin/psgi-bin/otobo.psgi
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,13 @@ use lib "$Bin/../..";
use lib "$Bin/../../Kernel/cpan-lib";
use lib "$Bin/../../Custom";

## nofilter(TidyAll::Plugin::OTOBO::Perl::Dumper)
## nofilter(TidyAll::Plugin::OTOBO::Perl::Require)
## nofilter(TidyAll::Plugin::OTOBO::Perl::SyntaxCheck)
## nofilter(TidyAll::Plugin::OTOBO::Perl::Time)

# core modules
use Cwd qw(abs_path);
use Data::Dumper;
use Data::Dumper; ## no critic qw(Modules::ProhibitEvilModules)
use Encode qw(:all);
use File::Basename qw(dirname);
use File::Path qw(make_path);
Expand Down
4 changes: 1 addition & 3 deletions development/webservices/otobo.RESTRequest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,14 @@
use warnings;
use utf8;

## nofilter(TidyAll::Plugin::OTOBO::Perl::Dumper)

# use ../ as lib location
use File::Basename;
use FindBin qw($RealBin);
use lib dirname($RealBin);

use JSON;
use REST::Client;
use Data::Dumper;
use Data::Dumper; ## no critic qw(Modules::ProhibitEvilModules)

# This is the HOST for the web service the format is:
# <HTTP_TYPE>:://<OTOBO_FQDN>/nph-genericinterface.pl
Expand Down
4 changes: 1 addition & 3 deletions development/webservices/otobo.SOAPRequest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,13 @@
use strict;
use warnings;

## nofilter(TidyAll::Plugin::OTOBO::Perl::Dumper)

# use ../ as lib location
use File::Basename;
use FindBin qw($RealBin);
use lib dirname($RealBin);

use SOAP::Lite;
use Data::Dumper;
use Data::Dumper; ## no critic qw(Modules::ProhibitEvilModules)

# Variables to be defined

Expand Down
6 changes: 0 additions & 6 deletions scripts/test/XML.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ use warnings;
use utf8;

# core modules
use Data::Dumper;

# CPAN modules
use Test2::V0;
Expand Down Expand Up @@ -75,7 +74,6 @@ END_XML

my @XMLHash = $XMLObject->XMLParse2XMLHash( String => $String );

#diag Dumper( \@XMLHash );
my @ExpectedXMLHash = (
undef,
{
Expand Down Expand Up @@ -195,8 +193,6 @@ END_XML
# the method MLHash2D() changes the passed in XMLHash as a side effect
my %ValueHash = $XMLObject->XMLHash2D( XMLHash => \@XMLHash );

#diag Dumper( \@XMLHash, \%ValueHash );

my @ExpectedChangedXMLHash = (
undef,
{
Expand Down Expand Up @@ -1201,8 +1197,6 @@ else {
my $XML = '<Test Name="test123" />';
my @XMLARRAY = $XMLObject->XMLParse( String => $XML );

#diag Dumper($XML, \@XMLARRAY);

# make a copy of the XMLArray (deep clone it),
# it will be needed for a later comparison
my @XMLARRAYCopy = $StorableObject->Clone( Data => \@XMLARRAY )->@*;
Expand Down

0 comments on commit f981d1e

Please sign in to comment.