From a7e6212241ea58dbcfbe40fa930dff0cb72a735a Mon Sep 17 00:00:00 2001 From: Jesus Bermudez Velazquez Date: Wed, 27 Nov 2024 11:06:08 +0000 Subject: [PATCH] Fix linter --- .../strict_authentication/authentication_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engines/strict_authentication/app/controllers/strict_authentication/authentication_controller.rb b/engines/strict_authentication/app/controllers/strict_authentication/authentication_controller.rb index 966475c1b..b3fabfab6 100644 --- a/engines/strict_authentication/app/controllers/strict_authentication/authentication_controller.rb +++ b/engines/strict_authentication/app/controllers/strict_authentication/authentication_controller.rb @@ -28,6 +28,8 @@ def path_allowed?(headers) all_allowed_paths(headers).find { |allowed_path| path =~ /^#{Regexp.escape(allowed_path)}/ } end + # rubocop:disable Metrics/CyclomaticComplexity + # rubocop:disable Metrics/PerceivedComplexity def all_allowed_paths(headers) # return all versions of the same product and arch # (that the system has available with that subscription) @@ -71,5 +73,7 @@ def all_allowed_paths(headers) end allowed_paths end + # rubocop:enable Metrics/CyclomaticComplexity + # rubocop:enable Metrics/PerceivedComplexity end end