Skip to content

Commit b5d5cae

Browse files
committed
moving rubocop violations to the todo list
1 parent 5c868d4 commit b5d5cae

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.rubocop_todo.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2024-10-06 16:00:59 UTC using RuboCop version 1.66.1.
3+
# on 2025-01-28 18:36:21 UTC using RuboCop version 1.66.1.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
@@ -12,6 +12,11 @@ Metrics/MethodLength:
1212
Exclude:
1313
- 'lib/grape/endpoint.rb'
1414

15+
# Offense count: 2
16+
# Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
17+
Metrics/ParameterLists:
18+
Max: 6
19+
1520
# Offense count: 18
1621
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
1722
# SupportedStyles: snake_case, normalcase, non_integer
@@ -60,7 +65,7 @@ RSpec/IndexedLet:
6065
- 'spec/grape/presenters/presenter_spec.rb'
6166
- 'spec/shared/versioning_examples.rb'
6267

63-
# Offense count: 38
68+
# Offense count: 39
6469
# Configuration parameters: AssignmentOnly.
6570
RSpec/InstanceVariable:
6671
Exclude:

lib/grape/error_formatter/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module Grape
44
module ErrorFormatter
55
class Base
66
class << self
7-
def call(message, backtrace, options = {}, env = nil, original_exception = nil, _status = nil) # rubocop:disable Metrics/ParameterLists
7+
def call(message, backtrace, options = {}, env = nil, original_exception = nil, _status = nil)
88
merge_backtrace = backtrace.present? && options.dig(:rescue_options, :backtrace)
99
merge_original_exception = original_exception && options.dig(:rescue_options, :original_exception)
1010

spec/grape/api_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2509,7 +2509,7 @@ def rescue_all_errors
25092509
context 'class' do
25102510
let(:custom_error_formatter) do
25112511
Class.new do
2512-
def self.call(message, _backtrace, _options, _env, _original_exception, status) # rubocop:disable Metrics/ParameterLists
2512+
def self.call(message, _backtrace, _options, _env, _original_exception, status)
25132513
"message: #{message} status: #{status} @backtrace"
25142514
end
25152515
end

0 commit comments

Comments
 (0)