Skip to content

Commit c79e440

Browse files
authored
Merge pull request #128 from github/enable-some-more-cops
config/default: Remove some redundant `Enabled: true` for cops
2 parents 30f662e + a059b85 commit c79e440

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

config/default.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -182,16 +182,14 @@ Layout/HeredocIndentation:
182182
Enabled: false
183183

184184
Layout/IndentationConsistency:
185-
Enabled: false
185+
StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#indentation
186186

187187
Layout/IndentationStyle:
188-
Enabled: true
189188
EnforcedStyle: spaces
190189
IndentationWidth: 2
191190
StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#default-indentation
192191

193192
Layout/IndentationWidth:
194-
Enabled: true
195193
Width: 2
196194
StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#default-indentation
197195

@@ -262,11 +260,9 @@ Layout/SingleLineBlockChain:
262260
Enabled: false
263261

264262
Layout/SpaceAfterColon:
265-
Enabled: true
266263
StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#spaces-operators
267264

268265
Layout/SpaceAfterComma:
269-
Enabled: true
270266
StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#spaces-operators
271267

272268
Layout/SpaceAfterMethodName:
@@ -276,18 +272,16 @@ Layout/SpaceAfterNot:
276272
Enabled: true
277273

278274
Layout/SpaceAfterSemicolon:
279-
Enabled: true
280275
StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#spaces-operators
281276

282277
Layout/SpaceAroundBlockParameters:
283278
Enabled: true
284279

285280
Layout/SpaceAroundEqualsInParameterDefault:
286-
Enabled: true
287281
StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#spaces-around-equals
288282

289283
Layout/SpaceAroundKeyword:
290-
Enabled: false
284+
StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#spaces-operators
291285

292286
Layout/SpaceAroundMethodCallOperator:
293287
Enabled: false
@@ -317,7 +311,6 @@ Layout/SpaceInLambdaLiteral:
317311
Enabled: false
318312

319313
Layout/SpaceInsideArrayLiteralBrackets:
320-
Enabled: true
321314
EnforcedStyle: no_space
322315
StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#no-spaces-braces
323316

@@ -349,7 +342,6 @@ Layout/TrailingEmptyLines:
349342
Enabled: true
350343

351344
Layout/TrailingWhitespace:
352-
Enabled: true
353345
StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#trailing-whitespace
354346

355347
Lint/AmbiguousAssignment:
@@ -1090,7 +1082,6 @@ Style/DateTime:
10901082
Enabled: false
10911083

10921084
Style/DefWithParentheses:
1093-
Enabled: true
10941085
StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#method-parens-when-arguments
10951086

10961087
Style/Dir:
@@ -1178,7 +1169,6 @@ Style/FloatDivision:
11781169
Enabled: false
11791170

11801171
Style/For:
1181-
Enabled: true
11821172
StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#avoid-for
11831173

11841174
Style/FormatString:
@@ -1215,7 +1205,6 @@ Style/HashLikeCase:
12151205
Enabled: false
12161206

12171207
Style/HashSyntax:
1218-
Enabled: true
12191208
EnforcedStyle: ruby19_no_mixed_keys
12201209
StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#symbols-as-keys
12211210

@@ -1316,7 +1305,6 @@ Style/MultilineIfModifier:
13161305
Enabled: false
13171306

13181307
Style/MultilineIfThen:
1319-
Enabled: true
13201308
StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#no-then-for-multi-line-if-unless
13211309

13221310
Style/MultilineInPatternThen:
@@ -1583,8 +1571,8 @@ Style/StringHashKeys:
15831571
Enabled: false
15841572

15851573
Style/StringLiterals:
1586-
Enabled: true
15871574
EnforcedStyle: double_quotes
1575+
StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#double-quotes
15881576

15891577
Style/StringLiteralsInInterpolation:
15901578
Enabled: false

0 commit comments

Comments
 (0)