Closed sinshutu closed 2 years ago
Could you provide a concrete example to reproduce? I tried to reproduce the error with an example file including an offence of Metrics/AbcSize
, but wasn't able to do.
📝 In my understanding,
rdjson_formatter.rb:73:in build_suggestions'
.Metrics/AbcSize
cop doesn't have auto-correction.
build_suggestions
is not called in case of Metrics/AbcSize
.Then, build_suggestions is not called in case of Metrics/AbcSize.
So that's it. Reproduced with rubocop 0.92.0.
I reproduced it with a simple program like the following.
# frozen_string_literal: true
def create
user = User.new(params)
user = User.new(params)
user = User.new(params)
user = User.new(params)
user = User.new(params)
user = User.new(params)
user = User.new(params)
user = User.new(params)
user = User.new(params)
user = User.new(params)
user = User.new(params)
user = User.new(params)
user = User.new(params)
user = User.new(params)
end
I'm getting an error during execution. Can provide more details if needed.
I feel that
Metrics / AbcSize
is the cause.rubocop offensens
error
workflow
Installing rubocop