]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/IndentationConsistency in test/mocks/open_id_authenticat...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 23 Nov 2019 15:12:35 +0000 (15:12 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 23 Nov 2019 15:12:35 +0000 (15:12 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19220 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
test/mocks/open_id_authentication_mock.rb

index c8ea9ab15cf8398139860ec2ff38e56e090caa89..b3ee67d06fc9383b3efb6cc6ec4f9311cb7408d7 100644 (file)
@@ -171,13 +171,6 @@ Layout/IndentFirstArrayElement:
 Layout/IndentFirstHashElement:
   Enabled: false
 
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle.
-# SupportedStyles: normal, indented_internal_methods
-Layout/IndentationConsistency:
-  Exclude:
-    - 'test/mocks/open_id_authentication_mock.rb'
-
 # Cop supports --auto-correct.
 # Configuration parameters: Width, IgnoredPatterns.
 Layout/IndentationWidth:
index d2c04c4bc1b5b0f508e4cba9227595fe5216aa89..dcc8ed441299f90566d69d14476027f327d62725 100644 (file)
@@ -15,7 +15,7 @@ module OpenIdAuthentication
 
   protected
 
-    def authenticate_with_open_id(identity_url = params[:openid_url], options = {})
+  def authenticate_with_open_id(identity_url = params[:openid_url], options = {})
       if User.find_by_identity_url(identity_url) || identity_url.include?('good')
         extension_response_fields = {}
 
@@ -38,12 +38,12 @@ module OpenIdAuthentication
         logger.info "OpenID authentication failed: #{identity_url}"
         yield Result[:failed], identity_url, nil
       end
-    end
+  end
 
   private
 
-    def add_simple_registration_fields(open_id_response, fields)
+  def add_simple_registration_fields(open_id_response, fields)
       open_id_response.add_extension_arg('sreg', 'required', [ fields[:required] ].flatten * ',') if fields[:required]
       open_id_response.add_extension_arg('sreg', 'optional', [ fields[:optional] ].flatten * ',') if fields[:optional]
-    end
+  end
 end