Remove dependency on rubocop-cask.
This commit is contained in:
parent
4cbeb1e981
commit
2a1788484a
@ -1,10 +1,9 @@
|
|||||||
require: 'rubocop-cask'
|
|
||||||
|
|
||||||
AllCops:
|
AllCops:
|
||||||
TargetRubyVersion: 2.0
|
TargetRubyVersion: 2.0
|
||||||
|
Include:
|
||||||
|
- '**/.simplecov'
|
||||||
Exclude:
|
Exclude:
|
||||||
- '**/Casks/**/*'
|
- '**/Casks/**/*'
|
||||||
- 'developer/**/*'
|
|
||||||
- '**/vendor/**/*'
|
- '**/vendor/**/*'
|
||||||
|
|
||||||
Metrics/AbcSize:
|
Metrics/AbcSize:
|
||||||
@ -16,10 +15,10 @@ Metrics/ClassLength:
|
|||||||
Metrics/CyclomaticComplexity:
|
Metrics/CyclomaticComplexity:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
Metrics/MethodLength:
|
Metrics/LineLength:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
Metrics/PerceivedComplexity:
|
Metrics/MethodLength:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
Metrics/ModuleLength:
|
Metrics/ModuleLength:
|
||||||
@ -29,6 +28,19 @@ Metrics/ModuleLength:
|
|||||||
- 'lib/hbc/macos.rb'
|
- 'lib/hbc/macos.rb'
|
||||||
- 'lib/hbc/utils.rb'
|
- 'lib/hbc/utils.rb'
|
||||||
|
|
||||||
|
Metrics/PerceivedComplexity:
|
||||||
|
Enabled: false
|
||||||
|
|
||||||
|
Performance/StringReplacement:
|
||||||
|
Enabled: false
|
||||||
|
|
||||||
|
Style/AlignHash:
|
||||||
|
EnforcedHashRocketStyle: table
|
||||||
|
EnforcedColonStyle: table
|
||||||
|
|
||||||
|
Style/BarePercentLiterals:
|
||||||
|
EnforcedStyle: percent_q
|
||||||
|
|
||||||
Style/BlockDelimiters:
|
Style/BlockDelimiters:
|
||||||
EnforcedStyle: semantic
|
EnforcedStyle: semantic
|
||||||
FunctionalMethods:
|
FunctionalMethods:
|
||||||
@ -75,15 +87,51 @@ Style/BlockDelimiters:
|
|||||||
- lambda
|
- lambda
|
||||||
- proc
|
- proc
|
||||||
|
|
||||||
|
|
||||||
Style/ClassAndModuleChildren:
|
Style/ClassAndModuleChildren:
|
||||||
EnforcedStyle: compact
|
EnforcedStyle: compact
|
||||||
|
|
||||||
|
Style/Documentation:
|
||||||
|
Enabled: false
|
||||||
|
|
||||||
|
Style/EmptyElse:
|
||||||
|
Enabled: false
|
||||||
|
|
||||||
|
Style/FileName:
|
||||||
|
Enabled: false
|
||||||
|
|
||||||
|
Style/HashSyntax:
|
||||||
|
EnforcedStyle: ruby19_no_mixed_keys
|
||||||
|
|
||||||
|
Style/IndentArray:
|
||||||
|
EnforcedStyle: align_brackets
|
||||||
|
|
||||||
|
Style/IndentHash:
|
||||||
|
EnforcedStyle: align_braces
|
||||||
|
|
||||||
|
Style/PercentLiteralDelimiters:
|
||||||
|
PreferredDelimiters:
|
||||||
|
'%': '{}'
|
||||||
|
'%i': '{}'
|
||||||
|
'%q': '{}'
|
||||||
|
'%Q': '{}'
|
||||||
|
'%r': '{}'
|
||||||
|
'%s': '()'
|
||||||
|
'%w': '[]'
|
||||||
|
'%W': '[]'
|
||||||
|
'%x': '()'
|
||||||
|
|
||||||
Style/PredicateName:
|
Style/PredicateName:
|
||||||
NameWhitelist: is_32_bit?, is_64_bit?
|
NameWhitelist: is_32_bit?, is_64_bit?
|
||||||
|
|
||||||
Style/RaiseArgs:
|
Style/RaiseArgs:
|
||||||
EnforcedStyle: exploded
|
EnforcedStyle: exploded
|
||||||
|
|
||||||
|
Style/RegexpLiteral:
|
||||||
|
EnforcedStyle: percent_r
|
||||||
|
|
||||||
Style/StringLiterals:
|
Style/StringLiterals:
|
||||||
EnforcedStyle: double_quotes
|
EnforcedStyle: double_quotes
|
||||||
|
|
||||||
|
Style/TrailingCommaInLiteral:
|
||||||
|
EnforcedStyleForMultiline: comma
|
||||||
|
|
||||||
|
|||||||
@ -7,10 +7,6 @@ group :debug do
|
|||||||
gem "pry-byebug", platforms: :mri
|
gem "pry-byebug", platforms: :mri
|
||||||
end
|
end
|
||||||
|
|
||||||
group :development do
|
|
||||||
gem "rubocop-cask", "~> 0.8.3"
|
|
||||||
end
|
|
||||||
|
|
||||||
group :test do
|
group :test do
|
||||||
# This is SimpleCov v0.12.0 with two fixes merged on top, that finally resolve
|
# This is SimpleCov v0.12.0 with two fixes merged on top, that finally resolve
|
||||||
# all issues with parallel tests, uncovered files, and tracked files. Switch
|
# all issues with parallel tests, uncovered files, and tracked files. Switch
|
||||||
|
|||||||
@ -12,7 +12,6 @@ GEM
|
|||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
ansi (1.5.0)
|
ansi (1.5.0)
|
||||||
ast (2.3.0)
|
|
||||||
builder (3.2.2)
|
builder (3.2.2)
|
||||||
byebug (9.0.5)
|
byebug (9.0.5)
|
||||||
codecov (0.1.5)
|
codecov (0.1.5)
|
||||||
@ -36,9 +35,6 @@ GEM
|
|||||||
parallel (1.9.0)
|
parallel (1.9.0)
|
||||||
parallel_tests (2.9.0)
|
parallel_tests (2.9.0)
|
||||||
parallel
|
parallel
|
||||||
parser (2.3.1.2)
|
|
||||||
ast (~> 2.2)
|
|
||||||
powerpack (0.1.1)
|
|
||||||
pry (0.10.4)
|
pry (0.10.4)
|
||||||
coderay (~> 1.1.0)
|
coderay (~> 1.1.0)
|
||||||
method_source (~> 0.8.1)
|
method_source (~> 0.8.1)
|
||||||
@ -46,8 +42,6 @@ GEM
|
|||||||
pry-byebug (3.4.0)
|
pry-byebug (3.4.0)
|
||||||
byebug (~> 9.0)
|
byebug (~> 9.0)
|
||||||
pry (~> 0.10)
|
pry (~> 0.10)
|
||||||
public_suffix (2.0.2)
|
|
||||||
rainbow (2.1.0)
|
|
||||||
rake (10.4.2)
|
rake (10.4.2)
|
||||||
rspec (3.0.0)
|
rspec (3.0.0)
|
||||||
rspec-core (~> 3.0.0)
|
rspec-core (~> 3.0.0)
|
||||||
@ -66,19 +60,9 @@ GEM
|
|||||||
rspec-support (3.0.4)
|
rspec-support (3.0.4)
|
||||||
rspec-wait (0.0.9)
|
rspec-wait (0.0.9)
|
||||||
rspec (>= 3, < 4)
|
rspec (>= 3, < 4)
|
||||||
rubocop (0.41.2)
|
|
||||||
parser (>= 2.3.1.1, < 3.0)
|
|
||||||
powerpack (~> 0.1)
|
|
||||||
rainbow (>= 1.99.1, < 3.0)
|
|
||||||
ruby-progressbar (~> 1.7)
|
|
||||||
unicode-display_width (~> 1.0, >= 1.0.1)
|
|
||||||
rubocop-cask (0.8.3)
|
|
||||||
public_suffix (~> 2.0)
|
|
||||||
rubocop (~> 0.41.1)
|
|
||||||
ruby-progressbar (1.8.1)
|
ruby-progressbar (1.8.1)
|
||||||
simplecov-html (0.10.0)
|
simplecov-html (0.10.0)
|
||||||
slop (3.6.0)
|
slop (3.6.0)
|
||||||
unicode-display_width (1.1.0)
|
|
||||||
url (0.3.2)
|
url (0.3.2)
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
@ -96,7 +80,6 @@ DEPENDENCIES
|
|||||||
rspec (~> 3.0.0)
|
rspec (~> 3.0.0)
|
||||||
rspec-its
|
rspec-its
|
||||||
rspec-wait
|
rspec-wait
|
||||||
rubocop-cask (~> 0.8.3)
|
|
||||||
simplecov (= 0.12.0)!
|
simplecov (= 0.12.0)!
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
require "rake/testtask"
|
require "rake/testtask"
|
||||||
require "rspec/core/rake_task"
|
require "rspec/core/rake_task"
|
||||||
require "rubocop/rake_task"
|
|
||||||
|
|
||||||
homebrew_repo = `brew --repository`.chomp
|
homebrew_repo = `brew --repository`.chomp
|
||||||
$LOAD_PATH.unshift(File.expand_path("#{homebrew_repo}/Library/Homebrew"))
|
$LOAD_PATH.unshift(File.expand_path("#{homebrew_repo}/Library/Homebrew"))
|
||||||
@ -18,12 +17,6 @@ namespace :test do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
RuboCop::RakeTask.new(:rubocop) do |t|
|
|
||||||
t.options = ["--force-exclusion"]
|
|
||||||
end
|
|
||||||
|
|
||||||
task default: [:rubocop]
|
|
||||||
|
|
||||||
desc "Open a REPL for debugging and experimentation"
|
desc "Open a REPL for debugging and experimentation"
|
||||||
task :console do
|
task :console do
|
||||||
require "pry"
|
require "pry"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user