Bump RuboCop to v0.91.x (#8391)

Merge pull request 8391
This commit is contained in:
Ashwin Maroli 2020-09-16 16:06:26 +05:30 committed by GitHub
parent 0d337c8a93
commit 3fd7449fa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -22,6 +22,8 @@ AllCops:
- vendor/**/* - vendor/**/*
- tmp/**/* - tmp/**/*
Layout/BeginEndAlignment:
Enabled: true
Layout/EmptyComment: Layout/EmptyComment:
Enabled: false Enabled: false
Layout/EmptyLinesAroundAttributeAccessor: Layout/EmptyLinesAroundAttributeAccessor:
@ -53,6 +55,10 @@ Layout/SpaceAroundMethodCallOperator:
Lint/BinaryOperatorWithIdenticalOperands: Lint/BinaryOperatorWithIdenticalOperands:
Enabled: true Enabled: true
Lint/ConstantDefinitionInBlock:
Enabled: true
Exclude:
- test/**/*.rb
Lint/DeprecatedOpenSSLConstant: Lint/DeprecatedOpenSSLConstant:
Enabled: true Enabled: true
Lint/DuplicateElsifCondition: Lint/DuplicateElsifCondition:
@ -67,6 +73,8 @@ Lint/EmptyFile:
Enabled: true Enabled: true
Lint/FloatComparison: Lint/FloatComparison:
Enabled: true Enabled: true
Lint/IdentityComparison:
Enabled: true
Lint/MissingSuper: Lint/MissingSuper:
Enabled: false Enabled: false
Lint/MixedRegexpCaptureTypes: Lint/MixedRegexpCaptureTypes:
@ -92,6 +100,8 @@ Lint/UnreachableLoop:
Enabled: true Enabled: true
Lint/UselessMethodDefinition: Lint/UselessMethodDefinition:
Enabled: true Enabled: true
Lint/UselessTimes:
Enabled: true
Lint/Void: Lint/Void:
Exclude: Exclude:
- lib/jekyll/site.rb - lib/jekyll/site.rb

View File

@ -23,7 +23,7 @@ group :test do
gem "nokogiri", "~> 1.7" gem "nokogiri", "~> 1.7"
gem "rspec" gem "rspec"
gem "rspec-mocks" gem "rspec-mocks"
gem "rubocop", "~> 0.90.0" gem "rubocop", "~> 0.91.0"
gem "rubocop-performance" gem "rubocop-performance"
gem "test-dependency-theme", :path => File.expand_path("test/fixtures/test-dependency-theme", __dir__) gem "test-dependency-theme", :path => File.expand_path("test/fixtures/test-dependency-theme", __dir__)
gem "test-theme", :path => File.expand_path("test/fixtures/test-theme", __dir__) gem "test-theme", :path => File.expand_path("test/fixtures/test-theme", __dir__)