From 9bada110f65904e29574172e9bbfa0121553860f Mon Sep 17 00:00:00 2001 From: Dimitris Christodoulou Date: Wed, 6 Aug 2025 21:05:21 +0100 Subject: [PATCH] Fix rubocop error & warnings --- .rubocop.yml | 2 +- .rubocop_todo.yml | 2 +- lib/couchbase/protostellar/response_converter/search.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 6ac12f0a..4fd04536 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,5 +1,5 @@ inherit_from: .rubocop_todo.yml -require: +plugins: - rubocop-minitest - rubocop-packaging - rubocop-performance diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 652b33d8..4d302aa9 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -31,7 +31,7 @@ Metrics/ClassLength: Metrics/BlockLength: Enabled: false -Naming/PredicateName: +Naming/PredicatePrefix: Enabled: false Style/AccessorGrouping: diff --git a/lib/couchbase/protostellar/response_converter/search.rb b/lib/couchbase/protostellar/response_converter/search.rb index 216e36a1..21444168 100644 --- a/lib/couchbase/protostellar/response_converter/search.rb +++ b/lib/couchbase/protostellar/response_converter/search.rb @@ -38,7 +38,7 @@ def self.to_search_result(resps, options) def self.convert_search_row(proto_row, options) Couchbase::Cluster::SearchRow.new do |r| - r.instance_variable_set(:@fields, (proto_row.fields.to_h.transform_values { |v| JSON.parse(v) }).to_json) + r.instance_variable_set(:@fields, proto_row.fields.to_h.transform_values { |v| JSON.parse(v) }.to_json) r.transcoder = options.transcoder r.index = proto_row.index r.id = proto_row.id