From 4b00805ce88754664dc6f159973e65d9836ee74d Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Tue, 6 May 2025 20:36:35 +0200 Subject: [PATCH] MT#62763 Use perl strictures Warned-by: perlcritic Fixes: TestingAndDebugging::RequireUseStrict TestingAndDebugging::RequireUseWarnings Change-Id: I41f46e419ee375dfcdbe20770710bc3f5520fecc --- sandbox/cftimeset_time_tz_conversion.t | 1 + sandbox/convert_cftimeset_time_tz.pl | 1 + sandbox/generate_logfile_data_inventory.pl | 1 + sandbox/test_js.pl | 2 +- t/api-rest/api-events.t | 3 +++ 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/sandbox/cftimeset_time_tz_conversion.t b/sandbox/cftimeset_time_tz_conversion.t index b43f068d0c..f273d8e50d 100644 --- a/sandbox/cftimeset_time_tz_conversion.t +++ b/sandbox/cftimeset_time_tz_conversion.t @@ -1,4 +1,5 @@ use strict; +use warnings; use Test::More; diff --git a/sandbox/convert_cftimeset_time_tz.pl b/sandbox/convert_cftimeset_time_tz.pl index 1490023dad..1ef694c2da 100755 --- a/sandbox/convert_cftimeset_time_tz.pl +++ b/sandbox/convert_cftimeset_time_tz.pl @@ -1,4 +1,5 @@ use strict; +use warnings; use DateTime qw(); use DateTime::TimeZone qw(); diff --git a/sandbox/generate_logfile_data_inventory.pl b/sandbox/generate_logfile_data_inventory.pl index bce3b360c6..201c8024ad 100644 --- a/sandbox/generate_logfile_data_inventory.pl +++ b/sandbox/generate_logfile_data_inventory.pl @@ -1,4 +1,5 @@ use strict; +use warnings; eval 'use lib "/home/rkrenn/sipwise/git/sipwise-base/lib";'; eval 'use lib "/home/rkrenn/sipwise/git/ngcp-panel/lib";'; diff --git a/sandbox/test_js.pl b/sandbox/test_js.pl index 46b67ae89d..2bf27f921d 100644 --- a/sandbox/test_js.pl +++ b/sandbox/test_js.pl @@ -1,5 +1,5 @@ - use strict; +use warnings; use JE qw(); use Test::More; diff --git a/t/api-rest/api-events.t b/t/api-rest/api-events.t index 285121f160..eafcbc2e9f 100644 --- a/t/api-rest/api-events.t +++ b/t/api-rest/api-events.t @@ -1,3 +1,6 @@ +use strict; +use warnings; + #use Sipwise::Base; use Net::Domain qw(hostfqdn); use JSON qw();