Skip to content

Commit fe64d98

Browse files
authored
style: add rubocop 1.9 cops (#8567)
Merge pull request 8567
1 parent 5a64aef commit fe64d98

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.rubocop.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ Lint/NestedPercentLiteral:
109109
- test/test_site.rb
110110
Lint/NoReturnInBeginEndBlocks:
111111
Enabled: true
112+
Lint/NumberedParameterAssignment:
113+
Enabled: true
114+
Lint/OrAssignmentToConstant:
115+
Enabled: true
112116
Lint/OutOfRangeRegexpRef:
113117
Enabled: true
114118
Lint/RaiseException:
@@ -121,12 +125,16 @@ Lint/SelfAssignment:
121125
Enabled: true
122126
Lint/StructNewOverride:
123127
Enabled: true
128+
Lint/SymbolConversion:
129+
Enabled: true
124130
Lint/ToEnumArguments:
125131
Enabled: false
126132
Lint/TopLevelReturnWithArgument:
127133
Enabled: true
128134
Lint/TrailingCommaInAttributeDeclaration:
129135
Enabled: true
136+
Lint/TripleQuotes:
137+
Enabled: true
130138
Lint/UnexpectedBlockArity:
131139
Enabled: true
132140
Lint/UnmodifiedReduceAccumulator:
@@ -321,6 +329,8 @@ Style/HashTransformKeys:
321329
Enabled: false
322330
Style/HashTransformValues:
323331
Enabled: true
332+
Style/IfWithBooleanLiteralBranches:
333+
Enabled: true
324334
Style/KeywordParametersOrder:
325335
Enabled: true
326336
Style/MixinUsage:

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ group :test do
2323
gem "nokogiri", "~> 1.7"
2424
gem "rspec"
2525
gem "rspec-mocks"
26-
gem "rubocop", "~> 1.8.1"
26+
gem "rubocop", "~> 1.9.1"
2727
gem "rubocop-minitest"
2828
gem "rubocop-performance"
2929
gem "rubocop-rake"

0 commit comments

Comments
 (0)