Skip to content

Commit aa8cedb

Browse files
committed
(CONT-786) Rubocop Unsafe Auto Fixes 10-11
- Style/StringConcatenation - Style/SymbolProc
1 parent 5273ce0 commit aa8cedb

File tree

530 files changed

+1057
-1071
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

530 files changed

+1057
-1071
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -161,17 +161,3 @@ Style/MixinUsage:
161161
Exclude:
162162
- 'spec/spec_helper.rb'
163163
- 'spec/spec_helper_acceptance_local.rb'
164-
165-
# Offense count: 1057
166-
# This cop supports unsafe autocorrection (--autocorrect-all).
167-
# Configuration parameters: Mode.
168-
Style/StringConcatenation:
169-
Enabled: false
170-
171-
# Offense count: 1
172-
# This cop supports unsafe autocorrection (--autocorrect-all).
173-
# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
174-
# AllowedMethods: define_method
175-
Style/SymbolProc:
176-
Exclude:
177-
- 'spec/spec_helper_acceptance_local.rb'

tasks/swagger_k8s_create_admissionregistration_v1beta1_mutating_webhook_configuration.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ def create_admissionregistration_v1beta1_mutating_webhook_configuration(*args)
2525

2626
uri_string = "#{arg_hash['kube_api']}/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations" % path_params
2727

28-
uri_string = uri_string + '?' + to_query(query_params) if query_params
28+
uri_string = "#{uri_string}?#{to_query(query_params)}" if query_params
2929

3030
header_params['Content-Type'] = 'application/json' # first of #{parent_consumes}
3131

32-
header_params['Authentication'] = 'Bearer ' + arg_hash['token'] if arg_hash['token']
32+
header_params['Authentication'] = "Bearer #{arg_hash['token']}" if arg_hash['token']
3333

3434
uri = URI(uri_string)
3535

tasks/swagger_k8s_create_admissionregistration_v1beta1_validating_webhook_configuration.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ def create_admissionregistration_v1beta1_validating_webhook_configuration(*args)
2525

2626
uri_string = "#{arg_hash['kube_api']}/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations" % path_params
2727

28-
uri_string = uri_string + '?' + to_query(query_params) if query_params
28+
uri_string = "#{uri_string}?#{to_query(query_params)}" if query_params
2929

3030
header_params['Content-Type'] = 'application/json' # first of #{parent_consumes}
3131

32-
header_params['Authentication'] = 'Bearer ' + arg_hash['token'] if arg_hash['token']
32+
header_params['Authentication'] = "Bearer #{arg_hash['token']}" if arg_hash['token']
3333

3434
uri = URI(uri_string)
3535

tasks/swagger_k8s_create_apiextensions_v1beta1_custom_resource_definition.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ def create_apiextensions_v1beta1_custom_resource_definition(*args)
2525

2626
uri_string = "#{arg_hash['kube_api']}/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions" % path_params
2727

28-
uri_string = uri_string + '?' + to_query(query_params) if query_params
28+
uri_string = "#{uri_string}?#{to_query(query_params)}" if query_params
2929

3030
header_params['Content-Type'] = 'application/json' # first of #{parent_consumes}
3131

32-
header_params['Authentication'] = 'Bearer ' + arg_hash['token'] if arg_hash['token']
32+
header_params['Authentication'] = "Bearer #{arg_hash['token']}" if arg_hash['token']
3333

3434
uri = URI(uri_string)
3535

tasks/swagger_k8s_create_apiregistration_v1_api_service.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ def create_apiregistration_v1_api_service(*args)
2525

2626
uri_string = "#{arg_hash['kube_api']}/apis/apiregistration.k8s.io/v1/apiservices" % path_params
2727

28-
uri_string = uri_string + '?' + to_query(query_params) if query_params
28+
uri_string = "#{uri_string}?#{to_query(query_params)}" if query_params
2929

3030
header_params['Content-Type'] = 'application/json' # first of #{parent_consumes}
3131

32-
header_params['Authentication'] = 'Bearer ' + arg_hash['token'] if arg_hash['token']
32+
header_params['Authentication'] = "Bearer #{arg_hash['token']}" if arg_hash['token']
3333

3434
uri = URI(uri_string)
3535

tasks/swagger_k8s_create_apiregistration_v1beta1_api_service.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ def create_apiregistration_v1beta1_api_service(*args)
2525

2626
uri_string = "#{arg_hash['kube_api']}/apis/apiregistration.k8s.io/v1beta1/apiservices" % path_params
2727

28-
uri_string = uri_string + '?' + to_query(query_params) if query_params
28+
uri_string = "#{uri_string}?#{to_query(query_params)}" if query_params
2929

3030
header_params['Content-Type'] = 'application/json' # first of #{parent_consumes}
3131

32-
header_params['Authentication'] = 'Bearer ' + arg_hash['token'] if arg_hash['token']
32+
header_params['Authentication'] = "Bearer #{arg_hash['token']}" if arg_hash['token']
3333

3434
uri = URI(uri_string)
3535

tasks/swagger_k8s_create_apps_v1_namespaced_controller_revision.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ def create_apps_v1_namespaced_controller_revision(*args)
2525

2626
uri_string = "#{arg_hash['kube_api']}/apis/apps/v1/namespaces/%{namespace}/controllerrevisions" % path_params
2727

28-
uri_string = uri_string + '?' + to_query(query_params) if query_params
28+
uri_string = "#{uri_string}?#{to_query(query_params)}" if query_params
2929

3030
header_params['Content-Type'] = 'application/json' # first of #{parent_consumes}
3131

32-
header_params['Authentication'] = 'Bearer ' + arg_hash['token'] if arg_hash['token']
32+
header_params['Authentication'] = "Bearer #{arg_hash['token']}" if arg_hash['token']
3333

3434
uri = URI(uri_string)
3535

tasks/swagger_k8s_create_apps_v1_namespaced_daemon_set.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ def create_apps_v1_namespaced_daemon_set(*args)
2525

2626
uri_string = "#{arg_hash['kube_api']}/apis/apps/v1/namespaces/%{namespace}/daemonsets" % path_params
2727

28-
uri_string = uri_string + '?' + to_query(query_params) if query_params
28+
uri_string = "#{uri_string}?#{to_query(query_params)}" if query_params
2929

3030
header_params['Content-Type'] = 'application/json' # first of #{parent_consumes}
3131

32-
header_params['Authentication'] = 'Bearer ' + arg_hash['token'] if arg_hash['token']
32+
header_params['Authentication'] = "Bearer #{arg_hash['token']}" if arg_hash['token']
3333

3434
uri = URI(uri_string)
3535

tasks/swagger_k8s_create_apps_v1_namespaced_deployment.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ def create_apps_v1_namespaced_deployment(*args)
2525

2626
uri_string = "#{arg_hash['kube_api']}/apis/apps/v1/namespaces/%{namespace}/deployments" % path_params
2727

28-
uri_string = uri_string + '?' + to_query(query_params) if query_params
28+
uri_string = "#{uri_string}?#{to_query(query_params)}" if query_params
2929

3030
header_params['Content-Type'] = 'application/json' # first of #{parent_consumes}
3131

32-
header_params['Authentication'] = 'Bearer ' + arg_hash['token'] if arg_hash['token']
32+
header_params['Authentication'] = "Bearer #{arg_hash['token']}" if arg_hash['token']
3333

3434
uri = URI(uri_string)
3535

tasks/swagger_k8s_create_apps_v1_namespaced_replica_set.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ def create_apps_v1_namespaced_replica_set(*args)
2525

2626
uri_string = "#{arg_hash['kube_api']}/apis/apps/v1/namespaces/%{namespace}/replicasets" % path_params
2727

28-
uri_string = uri_string + '?' + to_query(query_params) if query_params
28+
uri_string = "#{uri_string}?#{to_query(query_params)}" if query_params
2929

3030
header_params['Content-Type'] = 'application/json' # first of #{parent_consumes}
3131

32-
header_params['Authentication'] = 'Bearer ' + arg_hash['token'] if arg_hash['token']
32+
header_params['Authentication'] = "Bearer #{arg_hash['token']}" if arg_hash['token']
3333

3434
uri = URI(uri_string)
3535

0 commit comments

Comments
 (0)