Skip to content

Commit 8574a1a

Browse files
authored
Fix rubocop error & warnings (#187)
1 parent 2c58eaf commit 8574a1a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
inherit_from: .rubocop_todo.yml
2-
require:
2+
plugins:
33
- rubocop-minitest
44
- rubocop-packaging
55
- rubocop-performance

.rubocop_todo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Metrics/ClassLength:
3131
Metrics/BlockLength:
3232
Enabled: false
3333

34-
Naming/PredicateName:
34+
Naming/PredicatePrefix:
3535
Enabled: false
3636

3737
Style/AccessorGrouping:

lib/couchbase/protostellar/response_converter/search.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def self.to_search_result(resps, options)
3838

3939
def self.convert_search_row(proto_row, options)
4040
Couchbase::Cluster::SearchRow.new do |r|
41-
r.instance_variable_set(:@fields, (proto_row.fields.to_h.transform_values { |v| JSON.parse(v) }).to_json)
41+
r.instance_variable_set(:@fields, proto_row.fields.to_h.transform_values { |v| JSON.parse(v) }.to_json)
4242
r.transcoder = options.transcoder
4343
r.index = proto_row.index
4444
r.id = proto_row.id

0 commit comments

Comments
 (0)