From 34a46b891c1a7195a5d424cc991d309c8f269b31 Mon Sep 17 00:00:00 2001 From: hangy Date: Thu, 28 Mar 2024 15:36:03 +0100 Subject: [PATCH] fix: Disable RequireFilenameMatchesPackage for Config*_.pm (#10044) fix: Disable RequireFilenameMatchesPackage for modules that are symlinked to nother name --- lib/ProductOpener/Config2_docker.pm | 4 +++- lib/ProductOpener/Config2_sample.pm | 4 +++- lib/ProductOpener/Config_obf.pm | 4 +++- lib/ProductOpener/Config_off.pm | 4 +++- lib/ProductOpener/Config_opf.pm | 4 +++- lib/ProductOpener/Config_opff.pm | 4 +++- 6 files changed, 18 insertions(+), 6 deletions(-) diff --git a/lib/ProductOpener/Config2_docker.pm b/lib/ProductOpener/Config2_docker.pm index 93e51c88fcfaa..9f487bdeaf289 100755 --- a/lib/ProductOpener/Config2_docker.pm +++ b/lib/ProductOpener/Config2_docker.pm @@ -1,7 +1,7 @@ # This file is part of Product Opener. # # Product Opener -# Copyright (C) 2011-2023 Association Open Food Facts +# Copyright (C) 2011-2024 Association Open Food Facts # Contact: contact@openfoodfacts.org # Address: 21 rue des Iles, 94100 Saint-Maur des Fossés, France # @@ -18,6 +18,8 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . +## no critic (RequireFilenameMatchesPackage); + package ProductOpener::Config2; use utf8; diff --git a/lib/ProductOpener/Config2_sample.pm b/lib/ProductOpener/Config2_sample.pm index 5f02fe75b61e5..dfa2978ef82dd 100644 --- a/lib/ProductOpener/Config2_sample.pm +++ b/lib/ProductOpener/Config2_sample.pm @@ -1,7 +1,7 @@ # This file is part of Product Opener. # # Product Opener -# Copyright (C) 2011-2023 Association Open Food Facts +# Copyright (C) 2011-2024 Association Open Food Facts # Contact: contact@openfoodfacts.org # Address: 21 rue des Iles, 94100 Saint-Maur des Fossés, France # @@ -18,6 +18,8 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . +## no critic (RequireFilenameMatchesPackage); + package ProductOpener::Config2; use utf8; diff --git a/lib/ProductOpener/Config_obf.pm b/lib/ProductOpener/Config_obf.pm index d59a5e5eb1830..4d058f7a46777 100644 --- a/lib/ProductOpener/Config_obf.pm +++ b/lib/ProductOpener/Config_obf.pm @@ -1,7 +1,7 @@ # This file is part of Product Opener. # # Product Opener -# Copyright (C) 2011-2023 Association Open Food Facts +# Copyright (C) 2011-2024 Association Open Food Facts # Contact: contact@openfoodfacts.org # Address: 21 rue des Iles, 94100 Saint-Maur des Fossés, France # @@ -18,6 +18,8 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . +## no critic (RequireFilenameMatchesPackage); + package ProductOpener::Config; use utf8; diff --git a/lib/ProductOpener/Config_off.pm b/lib/ProductOpener/Config_off.pm index 8cf87bcdcfdf4..05a3fb2cc3863 100644 --- a/lib/ProductOpener/Config_off.pm +++ b/lib/ProductOpener/Config_off.pm @@ -1,7 +1,7 @@ # This file is part of Product Opener. # # Product Opener -# Copyright (C) 2011-2023 Association Open Food Facts +# Copyright (C) 2011-2024 Association Open Food Facts # Contact: contact@openfoodfacts.org # Address: 21 rue des Iles, 94100 Saint-Maur des Fossés, France # @@ -18,6 +18,8 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . +## no critic (RequireFilenameMatchesPackage); + package ProductOpener::Config; use utf8; diff --git a/lib/ProductOpener/Config_opf.pm b/lib/ProductOpener/Config_opf.pm index f9865447dcae1..e2f76af9916e3 100644 --- a/lib/ProductOpener/Config_opf.pm +++ b/lib/ProductOpener/Config_opf.pm @@ -1,7 +1,7 @@ # This file is part of Product Opener. # # Product Opener -# Copyright (C) 2011-2023 Association Open Food Facts +# Copyright (C) 2011-2024 Association Open Food Facts # Contact: contact@openfoodfacts.org # Address: 21 rue des Iles, 94100 Saint-Maur des Fossés, France # @@ -18,6 +18,8 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . +## no critic (RequireFilenameMatchesPackage); + package ProductOpener::Config; use utf8; diff --git a/lib/ProductOpener/Config_opff.pm b/lib/ProductOpener/Config_opff.pm index 00ad91524f51d..42a032988d50b 100644 --- a/lib/ProductOpener/Config_opff.pm +++ b/lib/ProductOpener/Config_opff.pm @@ -1,7 +1,7 @@ # This file is part of Product Opener. # # Product Opener -# Copyright (C) 2011-2023 Association Open Food Facts +# Copyright (C) 2011-2024 Association Open Food Facts # Contact: contact@openfoodfacts.org # Address: 21 rue des Iles, 94100 Saint-Maur des Fossés, France # @@ -18,6 +18,8 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . +## no critic (RequireFilenameMatchesPackage); + package ProductOpener::Config; use utf8;