From d4732f7d9a2c4a3928feed4b5b873240e79bdb46 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Fri, 16 Jul 2021 15:33:48 +0200 Subject: [PATCH] Maintenance: Activated rubocop Layout/SpaceAfterMethodName. --- .rubocop/default.yml | 7 ------- app/controllers/application_controller/renders_models.rb | 2 +- app/models/sla/assets.rb | 2 +- app/models/user/assets.rb | 2 +- 4 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.rubocop/default.yml b/.rubocop/default.yml index 62e7ea2ac..617260afc 100644 --- a/.rubocop/default.yml +++ b/.rubocop/default.yml @@ -86,13 +86,6 @@ Layout/SpaceInsideParens: StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces' Enabled: false -Layout/SpaceAfterMethodName: - Description: >- - Do not put a space between a method name and the opening - parenthesis in a method definition. - StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces' - Enabled: false - Layout/LeadingCommentSpace: Description: 'Comments should start with a space.' StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-space' diff --git a/app/controllers/application_controller/renders_models.rb b/app/controllers/application_controller/renders_models.rb index 303c39711..1b67bc6e2 100644 --- a/app/controllers/application_controller/renders_models.rb +++ b/app/controllers/application_controller/renders_models.rb @@ -78,7 +78,7 @@ module ApplicationController::RendersModels model_destroy_render_item() end - def model_destroy_render_item () + def model_destroy_render_item() render json: {}, status: :ok end diff --git a/app/models/sla/assets.rb b/app/models/sla/assets.rb index 6d490c34f..5a55684df 100644 --- a/app/models/sla/assets.rb +++ b/app/models/sla/assets.rb @@ -22,7 +22,7 @@ returns =end - def assets (data) + def assets(data) app_model_sla = Sla.to_app_model diff --git a/app/models/user/assets.rb b/app/models/user/assets.rb index f6b71a765..ec0db2238 100644 --- a/app/models/user/assets.rb +++ b/app/models/user/assets.rb @@ -22,7 +22,7 @@ returns =end - def assets (data) + def assets(data) return data if assets_added_to?(data) app_model = User.to_app_model