Skip to content

Commit de8d6b6

Browse files
committed
Upgraded rubocop, rubocop-rspec and rubocop-performance.
1 parent 9f6de6d commit de8d6b6

File tree

5 files changed

+56
-17
lines changed

5 files changed

+56
-17
lines changed

.rubocop_todo.yml

Lines changed: 50 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,37 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2019-12-23 15:50:03 -0500 using RuboCop version 0.73.0.
3+
# on 2020-05-09 11:15:45 -0400 using RuboCop version 0.82.0.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
88

9-
# Offense count: 3
9+
# Offense count: 1
10+
# Cop supports --auto-correct.
11+
Lint/NonDeterministicRequireOrder:
12+
Exclude:
13+
- 'spec/spec_helper.rb'
14+
15+
# Offense count: 2
16+
# Cop supports --auto-correct.
17+
Lint/RedundantCopDisableDirective:
18+
Exclude:
19+
- 'lib/slack-ruby-client.rb'
20+
21+
# Offense count: 2
1022
# Configuration parameters: AllowComments.
11-
Lint/HandleExceptions:
23+
Lint/SuppressedException:
1224
Exclude:
13-
- 'lib/slack/real_time/concurrency/async.rb'
1425
- 'spec/slack/real_time/concurrency/celluloid_spec.rb'
1526
- 'spec/slack/real_time/concurrency/eventmachine_spec.rb'
1627

17-
# Offense count: 10
28+
# Offense count: 11
29+
# Configuration parameters: IgnoredMethods.
1830
Metrics/AbcSize:
1931
Max: 39
2032

2133
# Offense count: 1
34+
# Configuration parameters: IgnoredMethods.
2235
Metrics/CyclomaticComplexity:
2336
Max: 9
2437

@@ -28,21 +41,43 @@ Metrics/MethodLength:
2841
Max: 32
2942

3043
# Offense count: 1
44+
# Configuration parameters: IgnoredMethods.
3145
Metrics/PerceivedComplexity:
3246
Max: 9
3347

48+
# Offense count: 2
49+
# Cop supports --auto-correct.
50+
Performance/RegexpMatch:
51+
Exclude:
52+
- 'lib/tasks/web.rake'
53+
3454
# Offense count: 1
3555
RSpec/AnyInstance:
3656
Exclude:
3757
- 'spec/slack/real_time/concurrency/celluloid_spec.rb'
3858

39-
# Offense count: 70
59+
# Offense count: 5
60+
# Cop supports --auto-correct.
61+
RSpec/ContextMethod:
62+
Exclude:
63+
- 'spec/slack/messages/formatting_spec.rb'
64+
- 'spec/slack/web/api/mixins/channels_spec.rb'
65+
- 'spec/slack/web/api/mixins/groups_spec.rb'
66+
- 'spec/slack/web/api/mixins/users_spec.rb'
67+
68+
# Offense count: 71
4069
# Configuration parameters: Prefixes.
4170
# Prefixes: when, with, without
4271
RSpec/ContextWording:
4372
Enabled: false
4473

45-
# Offense count: 64
74+
# Offense count: 129
75+
# Cop supports --auto-correct.
76+
# Configuration parameters: AllowConsecutiveOneLiners.
77+
RSpec/EmptyLineAfterExample:
78+
Enabled: false
79+
80+
# Offense count: 65
4681
# Configuration parameters: Max.
4782
RSpec/ExampleLength:
4883
Enabled: false
@@ -66,12 +101,11 @@ RSpec/InstanceVariable:
66101
RSpec/MessageSpies:
67102
EnforcedStyle: receive
68103

69-
# Offense count: 93
70-
# Configuration parameters: AggregateFailuresByDefault.
104+
# Offense count: 94
71105
RSpec/MultipleExpectations:
72106
Max: 5
73107

74-
# Offense count: 34
108+
# Offense count: 35
75109
RSpec/NestedGroups:
76110
Max: 6
77111

@@ -92,3 +126,9 @@ RSpec/VerifiedDoubles:
92126
- 'spec/slack/real_time/concurrency/eventmachine_spec.rb'
93127
- 'spec/slack/web/faraday/response/raise_error_spec.rb'
94128
- 'spec/support/real_time/connected_client.rb'
129+
130+
# Offense count: 4
131+
# Configuration parameters: .
132+
# SupportedStyles: annotated, template, unannotated
133+
Style/FormatStringToken:
134+
EnforcedStyle: unannotated

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ language: ruby
33
cache: bundler
44

55
rvm:
6-
- 2.3.8
76
- 2.5.3
87
- 2.6.0
98
- ruby-head

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
### 0.15.0 (Next)
22

33
* [#323](https://github.com/slack-ruby/slack-ruby-client/pull/322): Require Faraday >= 1.0 - [@dblock](https://github.com/dblock).
4-
* [#323](https://github.com/slack-ruby/slack-ruby-client/pull/322): Upgrade slack-ruby-danger to 0.2.0 - [@dblock](https://github.com/dblock).
4+
* [#323](https://github.com/slack-ruby/slack-ruby-client/pull/322): Upgrade slack-ruby-danger, rubocop, rubocop-rspec and rubocop-performance - [@dblock](https://github.com/dblock).
55
* [#322](https://github.com/slack-ruby/slack-ruby-client/pull/322): Cache `Faraday::Connection` for persistent adapters - [@drbrain](https://github.com/drbrain).
66
* Your contribution here.
77

lib/slack-ruby-client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
require 'logger'
1616
begin
1717
require 'picky'
18-
rescue LoadError # rubocop:disable Lint/HandleExceptions
18+
rescue LoadError # rubocop:disable Lint/SuppressedException
1919
# ignore, only used in users_search
2020
end
2121
begin
2222
require 'openssl'
23-
rescue LoadError # rubocop:disable Lint/HandleExceptions
23+
rescue LoadError # rubocop:disable Lint/SuppressedException
2424
# Used in slack/web/config
2525
end
2626
require_relative 'slack/web/config'

slack-ruby-client.gemspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ Gem::Specification.new do |s|
2727
s.add_development_dependency 'json-schema'
2828
s.add_development_dependency 'rake', '~> 10'
2929
s.add_development_dependency 'rspec'
30-
s.add_development_dependency 'rubocop', '~> 0.73.0'
31-
s.add_development_dependency 'rubocop-performance', '~> 1.4.1'
32-
s.add_development_dependency 'rubocop-rspec', '~> 1.34.0'
30+
s.add_development_dependency 'rubocop', '~> 0.82.0'
31+
s.add_development_dependency 'rubocop-performance', '~> 1.5.2'
32+
s.add_development_dependency 'rubocop-rspec', '~> 1.39.0'
3333
s.add_development_dependency 'timecop'
3434
s.add_development_dependency 'vcr'
3535
s.add_development_dependency 'webmock'

0 commit comments

Comments
 (0)