diff --git a/.rubocop.yml b/.rubocop.yml index 0d6f51b2a6..fb29a1ecae 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -73,7 +73,7 @@ Metrics/ClassLength: # A calculated magnitude based on number of assignments, # branches, and conditions. Metrics/AbcSize: - Max: 90 + Max: 95 Metrics/ParameterLists: CountKeywordArgs: false @@ -82,10 +82,10 @@ RSpec/AnyInstance: Enabled: false Metrics/CyclomaticComplexity: - Max: 20 + Max: 25 Metrics/PerceivedComplexity: - Max: 20 + Max: 25 Rails/Exit: Exclude: diff --git a/app/controllers/api/v1/users_controller.rb b/app/controllers/api/v1/users_controller.rb index 9a2436f6bb..15ad2f57c4 100644 --- a/app/controllers/api/v1/users_controller.rb +++ b/app/controllers/api/v1/users_controller.rb @@ -35,7 +35,7 @@ def show render_data data: user, status: :ok end - # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity + # rubocop:disable Metrics/AbcSize # POST /api/v1/users.json # Creates and saves a new user record in the database with the provided parameters def create @@ -97,7 +97,7 @@ def create render_error errors: Rails.configuration.custom_error_msgs[:record_invalid], status: :bad_request end end - # rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity + # rubocop:enable Metrics/AbcSize # PATCH /api/v1/users/:id.json # Updates the values of a user