Updates rubocop-performance and config

This commit is contained in:
erwanlr
2020-05-23 09:17:41 +02:00
parent 14abd05969
commit 677d32fef5
4 changed files with 23 additions and 3 deletions

View File

@@ -4,10 +4,20 @@ AllCops:
Exclude:
- '*.gemspec'
- 'vendor/**/*'
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: true
Layout/LineLength:
Max: 120
Layout/SpaceAroundMethodCallOperator:
Enabled: true
Lint/DeprecatedOpenSSLConstant:
Enabled: true
Lint/UriEscapeUnescape:
Enabled: false
Lint/RaiseException:
Enabled: true
Lint/StructNewOverride:
Enabled: true
Metrics/AbcSize:
Max: 25
Metrics/BlockLength:
@@ -27,8 +37,18 @@ Style/ClassVars:
Enabled: false
Style/Documentation:
Enabled: false
Style/ExponentialNotation:
Enabled: true
Style/FormatStringToken:
Enabled: false
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true
Style/NumericPredicate:
Exclude:
- 'app/controllers/vuln_api.rb'
Style/SlicingWithRange:
Enabled: true

View File

@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rspec', '~> 3.9.0'
s.add_development_dependency 'rspec-its', '~> 1.3.0'
s.add_development_dependency 'rubocop', '~> 0.84.0'
s.add_development_dependency 'rubocop-performance', '~> 1.5.0'
s.add_development_dependency 'rubocop-performance', '~> 1.6.0'
s.add_development_dependency 'simplecov', '~> 0.18.2'
s.add_development_dependency 'simplecov-lcov', '~> 0.8.0'
s.add_development_dependency 'stackprof', '~> 0.2.12'