Skip to content

Commit 07f6fe5

Browse files
committed
relax lint rules
1 parent 5cee00d commit 07f6fe5

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.rubocop.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ Style/FrozenStringLiteralComment:
2424

2525
# default complexity is low at 8
2626
Metrics/PerceivedComplexity:
27-
Max: 10
27+
Max: 12
28+
29+
# method length is not a problem
30+
MethodLength:
31+
Max: 30
2832

2933
# if works as well as safe navigation (&.)
3034
Style/SafeNavigation:

demo/demo_async.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@
3737
company_list.each do |company|
3838
# store request into a search_queue - no-blocker
3939
result = client.search({ q: company })
40-
if result[:search_metadata][:status] =~ /Cached/
41-
puts "#{company}: search results found in cache for: #{company}"
42-
end
40+
puts "#{company}: search results found in cache for: #{company}" if result[:search_metadata][:status] =~ /Cached/
4341

4442
# add results to the client queue
4543
search_queue.push(result[:search_metadata][:id])
@@ -67,7 +65,7 @@
6765
next
6866
end
6967

70-
# add results back to the client queue
68+
# add results back to the client queue
7169
# if the search is still in progress
7270
search_queue.push(result)
7371
end

0 commit comments

Comments
 (0)