Skip to content

Commit

Permalink
Issue #760: remove some obsolete TODO comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed Feb 14, 2021
1 parent aafcbb7 commit 67a0610
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 13 deletions.
3 changes: 2 additions & 1 deletion Kernel/System/MigrateFromOTRS/CloneDB/Driver/Base.pm
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,9 @@ sub DataTransfer {
# Open for writing as the file usually does not exist yet.
# This approach assumes that the the webserver processes are running on a single machine.
my $LockFile = join '/', $ConfigObject->Get('Home'), 'var/tmp/migrate_from_otrs.lock';
# TODO: why still warnings from Perl::Critic ??

## no critic qw(OTOBO::ProhibitLowPrecedenceOps OTOBO::ProhibitOpen InputOutput::RequireBriefOpen)

open my $LockFh, '>', $LockFile or do {
$MigrationBaseObject->MigrationLog(
String => "Could not open lockfile $LockFile; $!",
Expand Down
1 change: 0 additions & 1 deletion Kernel/System/MigrateFromOTRS/OTOBOCopyFilesFromOTRS.pm
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,6 @@ sub ReConfigure {

# Write new config file, the file handle is autoclosed as it is lexical to the block
{
# TODO: find out why the warning is still reported
open my $Out, '>:encoding(utf-8)', $ConfigFile
or return "Can't open $ConfigFile: $!"; ## no critic qw(OTOBO::ProhibitLowPrecedenceOps)
print $Out $Config;
Expand Down
1 change: 0 additions & 1 deletion Kernel/System/MigrateFromOTRS/OTOBOOTRSConnectionCheck.pm
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ sub _CheckConfigpmAndWriteCache {
my %CacheOptions;

{
## TODO: why does Perl::Critic still complain about OTOBO::ProhibitOpen ??
open( my $In, '<', $ConfigFile ) ## no critic qw(OTOBO::ProhibitOpen)
or return "Can't open $ConfigFile: $!"; ## no critic qw(OTOBO::ProhibitLowPrecedenceOps)

Expand Down
5 changes: 2 additions & 3 deletions Kernel/System/UnitTest/RegisterDriver.pm
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ use utf8;
# OTOBO modules
use Kernel::System::ObjectManager;

# TODO: why still warnings from Perl::Critic ??, find better location for the no critic
## no critic qw(OTOBO::RequireCamelCase)
sub import {

sub import { ## no critic qw(OTOBO::RequireCamelCase)

# RegisterDriver is meant for test scripts,
# meaning that each sript has it's own process.
Expand Down
4 changes: 2 additions & 2 deletions Kernel/System/UnitTest/Selenium.pm
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,8 @@ Therefore override that subroutine.
=cut

# TODO: where to put 'no critic qw(OTOBO::RequireCamelCase)'
sub button_up {
sub button_up { ## no critic qw(OTOBO::RequireCamelCase)

my ($Self) = @_;

if ( $Self->{is_wd3}
Expand Down
4 changes: 1 addition & 3 deletions Kernel/System/Web/Exception.pm
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ make use of a caught exception object
=cut

# TODO: why still warnings from Perl::Critic ??
## no critic qw(OTOBO::RequireCamelCase)
sub as_psgi {
sub as_psgi { ## no critic qw(OTOBO::RequireCamelCase)
my $Self = shift;

# The thrower created the error message
Expand Down
2 changes: 0 additions & 2 deletions scripts/backup.pl
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@
my $Directory = join '/',
$BackupDir,
$SystemDTObject->Format( Format => '%Y-%m-%d_%H-%M-%S' );
# TODO: why still warnings from Perl::Critic ??
mkdir $Directory or die "ERROR: Can't create directory: $Directory: $!"; ## no critic qw(OTOBO::ProhibitLowPrecedenceOps)

# backup application
Expand Down Expand Up @@ -489,7 +488,6 @@ sub BackupForMigrateFromOTRS {

# now adapt the relevant lines
# TODO: make this less nasty. Make it nicety.
# TODO: why still warnings from Perl::Critic ?? Maybe the line count is messed up.
open my $Adapted, '>', $AdaptedSchemaDumpFile ## no critic qw(OTOBO::ProhibitOpen)
or die "Can't open $AdaptedSchemaDumpFile for writing: $!"; ## no critic qw(OTOBO::ProhibitLowPrecedenceOps)
say $Adapted "-- adapted by $0";
Expand Down

0 comments on commit 67a0610

Please sign in to comment.