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