Skip to content

Commit f991fbd

Browse files
committed
Upgraded RuboCop.
1 parent 089f432 commit f991fbd

File tree

6 files changed

+49
-39
lines changed

6 files changed

+49
-39
lines changed

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ AllCops:
33
- vendor/**/*
44
- bin/**/*
55

6+
Style:
7+
Enabled: false
8+
69
inherit_from: .rubocop_todo.yml

.rubocop_todo.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2017-03-14 23:29:48 -0400 using RuboCop version 0.47.1.
3+
# on 2018-05-10 19:56:31 -0400 using RuboCop version 0.55.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
@@ -19,12 +19,6 @@ Metrics/BlockLength:
1919
Metrics/CyclomaticComplexity:
2020
Max: 11
2121

22-
# Offense count: 63
23-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
24-
# URISchemes: http, https
25-
Metrics/LineLength:
26-
Max: 186
27-
2822
# Offense count: 5
2923
# Configuration parameters: CountComments.
3024
Metrics/MethodLength:
@@ -34,13 +28,23 @@ Metrics/MethodLength:
3428
Metrics/PerceivedComplexity:
3529
Max: 11
3630

37-
# Offense count: 19
38-
Style/Documentation:
39-
Enabled: false
40-
4131
# Offense count: 1
4232
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
4333
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
44-
Style/FileName:
34+
Naming/FileName:
4535
Exclude:
4636
- 'slack-api-explorer.rb'
37+
38+
# Offense count: 2
39+
# Configuration parameters: Blacklist.
40+
# Blacklist: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
41+
Naming/HeredocDelimiterNaming:
42+
Exclude:
43+
- 'slack-api-explorer/commands/help.rb'
44+
- 'slack-api-explorer/info.rb'
45+
46+
# Offense count: 60
47+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
48+
# URISchemes: http, https
49+
Metrics/LineLength:
50+
Max: 186

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
source 'http://rubygems.org'
23

34
ruby '2.3.1'

Gemfile.lock

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ GEM
1010
tzinfo (~> 1.1)
1111
addressable (2.5.0)
1212
public_suffix (~> 2.0, >= 2.0.2)
13-
ast (2.3.0)
13+
ast (2.4.0)
1414
axiom-types (0.1.1)
1515
descendants_tracker (~> 0.0.4)
1616
ice_nine (~> 0.11.0)
@@ -162,8 +162,9 @@ GEM
162162
newrelic_rpm (3.18.1.330)
163163
nio4r (2.0.0)
164164
oj (2.18.3)
165-
parser (2.4.0.0)
166-
ast (~> 2.2)
165+
parallel (1.12.1)
166+
parser (2.5.1.0)
167+
ast (~> 2.4.0)
167168
powerpack (0.1.1)
168169
public_suffix (2.0.5)
169170
rack (2.0.1)
@@ -177,7 +178,7 @@ GEM
177178
rack
178179
rack-test (0.6.3)
179180
rack (>= 1.0)
180-
rainbow (2.2.1)
181+
rainbow (3.0.0)
181182
raindrops (0.17.0)
182183
rake (12.0.0)
183184
rdoc (5.1.0)
@@ -203,13 +204,14 @@ GEM
203204
diff-lcs (>= 1.2.0, < 2.0)
204205
rspec-support (~> 3.5.0)
205206
rspec-support (3.5.0)
206-
rubocop (0.47.1)
207-
parser (>= 2.3.3.1, < 3.0)
207+
rubocop (0.55.0)
208+
parallel (~> 1.10)
209+
parser (>= 2.5)
208210
powerpack (~> 0.1)
209-
rainbow (>= 1.99.1, < 3.0)
211+
rainbow (>= 2.2.2, < 4.0)
210212
ruby-progressbar (~> 1.7)
211213
unicode-display_width (~> 1.0, >= 1.0.1)
212-
ruby-progressbar (1.8.1)
214+
ruby-progressbar (1.9.0)
213215
rubyzip (1.1.7)
214216
safe_yaml (1.0.4)
215217
slack-ruby-bot (0.10.1)
@@ -243,7 +245,7 @@ GEM
243245
tzinfo (1.2.2)
244246
thread_safe (~> 0.1)
245247
uber (0.1.0)
246-
unicode-display_width (1.1.3)
248+
unicode-display_width (1.3.2)
247249
unicorn (5.2.0)
248250
kgio (~> 2.6)
249251
raindrops (~> 0.7)
@@ -294,4 +296,4 @@ RUBY VERSION
294296
ruby 2.3.1p112
295297

296298
BUNDLED WITH
297-
1.14.4
299+
1.16.0

slack-api-explorer/commands/help.rb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ def self.help_for(expression = nil)
66
@help[expression] ||= '```' + `slack help #{expression}`.gsub(/^( )/, '') + '```'
77
end
88

9-
HELP = <<-EOS.freeze
10-
I am your friendly Api Explorer, here to help.
9+
HELP = <<~EOS.freeze
10+
I am your friendly Api Explorer, here to help.
1111
12-
```
13-
General
14-
-------
12+
```
13+
General
14+
-------
1515
16-
help - get this helpful message
16+
help - get this helpful message
1717
18-
Commands
19-
--------
20-
#{`slack help`.gsub(/.*?(COMMANDS)/m, '').gsub(/^( )/, '')}
21-
Most commands contain subcommands, try "help <command>" (eg. "help api") to get a list of subcommands.
22-
```
18+
Commands
19+
--------
20+
#{`slack help`.gsub(/.*?(COMMANDS)/m, '').gsub(/^( )/, '')}
21+
Most commands contain subcommands, try "help <command>" (eg. "help api") to get a list of subcommands.
22+
```
2323
EOS
2424

2525
def self.call(client, data, match)

slack-api-explorer/info.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module SlackApiExplorer
2-
INFO = <<-EOS.freeze
3-
Api Explorer #{SlackApiExplorer::VERSION}
2+
INFO = <<~EOS.freeze
3+
Api Explorer #{SlackApiExplorer::VERSION}
44
5-
© Daniel Doubrovkine & Contributors, MIT License
6-
https://twitter.com/dblockdotorg
5+
© Daniel Doubrovkine & Contributors, MIT License
6+
https://twitter.com/dblockdotorg
77
8-
Free Service at http://slack-api-explorer.playplay.io
9-
Open-Source at https://github.com/dblock/slack-api-explorer
8+
Free Service at http://slack-api-explorer.playplay.io
9+
Open-Source at https://github.com/dblock/slack-api-explorer
1010
EOS
1111
end

0 commit comments

Comments
 (0)