Skip to content

Commit

Permalink
Fix RuboCop configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala committed Jul 12, 2018
1 parent 7b2894f commit 30293c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ Metrics/ClassLength:
- 'test/**/*'

Metrics/CyclomaticComplexity:
Max: 7
Exclude:
- 'test/**/*'

Expand Down Expand Up @@ -58,7 +57,7 @@ Style/FormatStringToken:
Exclude:
- 'test/**/*'

# TODO: Remove when targeting Ruby 2.3 because it is already enabled.
# TODO: Remove when targeting Ruby 3 because it is already enabled.
Style/FrozenStringLiteralComment:
Enabled: true
EnforcedStyle: always
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ end
PORT = 4567

# Returns an array e.g.: ['open', 'http://example.com']
# rubocop:disable Metrics/CyclomaticComplexity
def browse_cmd(url)
require 'rbconfig'
browser = ENV['BROWSER'] ||
Expand All @@ -94,6 +95,7 @@ def browse_cmd(url)
abort('ERROR: no web browser detected') unless browser
Array(browser) << url
end
# rubocop:enable Metrics/CyclomaticComplexity

# which('ruby') #=> /usr/bin/ruby
def which(cmd)
Expand Down

0 comments on commit 30293c7

Please sign in to comment.