Skip to content
/ jekyll Public
forked from jekyll/jekyll

Commit

Permalink
style: add rubocop 1.9 cops (jekyll#8567)
Browse files Browse the repository at this point in the history
Merge pull request 8567
  • Loading branch information
DirtyF committed Feb 1, 2021
1 parent 5a64aef commit fe64d98
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ Lint/NestedPercentLiteral:
- test/test_site.rb
Lint/NoReturnInBeginEndBlocks:
Enabled: true
Lint/NumberedParameterAssignment:
Enabled: true
Lint/OrAssignmentToConstant:
Enabled: true
Lint/OutOfRangeRegexpRef:
Enabled: true
Lint/RaiseException:
Expand All @@ -121,12 +125,16 @@ Lint/SelfAssignment:
Enabled: true
Lint/StructNewOverride:
Enabled: true
Lint/SymbolConversion:
Enabled: true
Lint/ToEnumArguments:
Enabled: false
Lint/TopLevelReturnWithArgument:
Enabled: true
Lint/TrailingCommaInAttributeDeclaration:
Enabled: true
Lint/TripleQuotes:
Enabled: true
Lint/UnexpectedBlockArity:
Enabled: true
Lint/UnmodifiedReduceAccumulator:
Expand Down Expand Up @@ -321,6 +329,8 @@ Style/HashTransformKeys:
Enabled: false
Style/HashTransformValues:
Enabled: true
Style/IfWithBooleanLiteralBranches:
Enabled: true
Style/KeywordParametersOrder:
Enabled: true
Style/MixinUsage:
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ group :test do
gem "nokogiri", "~> 1.7"
gem "rspec"
gem "rspec-mocks"
gem "rubocop", "~> 1.8.1"
gem "rubocop", "~> 1.9.1"
gem "rubocop-minitest"
gem "rubocop-performance"
gem "rubocop-rake"
Expand Down

0 comments on commit fe64d98

Please sign in to comment.