config/default.yml in rubocop-github-0.19.0 vs config/default.yml in rubocop-github-0.20.0
- old
+ new
@@ -1,5 +1,8 @@
+inherit_from:
+ - ./default_pending.yml
+
require:
- rubocop-github
- rubocop-performance
Bundler/DuplicatedGem:
@@ -63,12 +66,14 @@
Enabled: true
Layout/BlockEndNewline:
Enabled: true
+# TODO: Enable this since it's in the styleguide.
Layout/CaseIndentation:
Enabled: false
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#indent-when-as-start-of-case
Layout/ClassStructure:
Enabled: false
Layout/ClosingHeredocIndentation:
@@ -178,20 +183,20 @@
Layout/HeredocIndentation:
Enabled: false
Layout/IndentationConsistency:
- Enabled: false
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#indentation
Layout/IndentationStyle:
- Enabled: true
EnforcedStyle: spaces
IndentationWidth: 2
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#default-indentation
Layout/IndentationWidth:
- Enabled: true
Width: 2
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#default-indentation
Layout/InitialIndentation:
Enabled: true
Layout/LeadingCommentSpace:
@@ -256,32 +261,32 @@
Layout/SingleLineBlockChain:
Enabled: false
Layout/SpaceAfterColon:
- Enabled: true
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#spaces-operators
Layout/SpaceAfterComma:
- Enabled: true
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#spaces-operators
Layout/SpaceAfterMethodName:
Enabled: true
Layout/SpaceAfterNot:
Enabled: true
Layout/SpaceAfterSemicolon:
- Enabled: true
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#spaces-operators
Layout/SpaceAroundBlockParameters:
Enabled: true
Layout/SpaceAroundEqualsInParameterDefault:
- Enabled: true
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#spaces-around-equals
Layout/SpaceAroundKeyword:
- Enabled: false
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#spaces-operators
Layout/SpaceAroundMethodCallOperator:
Enabled: false
Layout/SpaceAroundOperators:
@@ -307,12 +312,12 @@
Layout/SpaceInLambdaLiteral:
Enabled: false
Layout/SpaceInsideArrayLiteralBrackets:
- Enabled: true
EnforcedStyle: no_space
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#no-spaces-braces
Layout/SpaceInsideArrayPercentLiteral:
Enabled: true
Layout/SpaceInsideBlockBraces:
@@ -338,11 +343,11 @@
Layout/TrailingEmptyLines:
Enabled: true
Layout/TrailingWhitespace:
- Enabled: true
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#trailing-whitespace
Lint/AmbiguousAssignment:
Enabled: false
Lint/AmbiguousBlockAssociation:
@@ -442,10 +447,19 @@
Enabled: false
Lint/EmptyEnsure:
Enabled: true
+Lint/EmptyExpression:
+ Enabled: false
+
+Lint/EmptyFile:
+ Enabled: false
+
+Lint/EmptyWhen:
+ Enabled: false
+
Lint/EmptyInterpolation:
Enabled: true
Lint/EnsureReturn:
Enabled: true
@@ -595,10 +609,13 @@
Enabled: false
Lint/RequireParentheses:
Enabled: true
+Lint/RequireRangeParentheses:
+ Enabled: false
+
Lint/RequireRelativeSelfPath:
Enabled: false
Lint/RescueException:
Enabled: true
@@ -676,12 +693,14 @@
Enabled: true
Lint/UnreachableLoop:
Enabled: false
+# TODO: Enable this since it's in the styleguide.
Lint/UnusedBlockArgument:
Enabled: false
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#underscore-unused-vars
Lint/UnusedMethodArgument:
Enabled: false
Lint/UriEscapeUnescape:
@@ -974,12 +993,14 @@
Enabled: false
Style/Alias:
Enabled: false
+# TODO: Enable this since it's in the styleguide.
Style/AndOr:
Enabled: false
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#no-and-or-or
Style/ArgumentsForwarding:
Enabled: false
Style/ArrayCoercion:
@@ -1074,11 +1095,11 @@
Style/DateTime:
Enabled: false
Style/DefWithParentheses:
- Enabled: true
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#method-parens-when-arguments
Style/Dir:
Enabled: false
Style/DisableCopsWithinSourceCodeDirective:
@@ -1112,10 +1133,13 @@
Enabled: false
Style/EmptyElse:
Enabled: false
+Style/EmptyHeredoc:
+ Enabled: false
+
Style/EmptyLambdaParameter:
Enabled: false
Style/EmptyLiteral:
Enabled: false
@@ -1161,11 +1185,11 @@
Style/FloatDivision:
Enabled: false
Style/For:
- Enabled: true
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#avoid-for
Style/FormatString:
Enabled: false
Style/FormatStringToken:
@@ -1197,12 +1221,12 @@
Style/HashLikeCase:
Enabled: false
Style/HashSyntax:
- Enabled: true
EnforcedStyle: ruby19_no_mixed_keys
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#symbols-as-keys
Style/HashTransformKeys:
Enabled: false
Style/HashTransformValues:
@@ -1254,10 +1278,13 @@
Enabled: true
Style/LineEndConcatenation:
Enabled: false
+Style/MagicCommentFormat:
+ Enabled: false
+
Style/MapCompactWithConditionalBlock:
Enabled: false
Style/MapToHash:
Enabled: false
@@ -1297,11 +1324,11 @@
Style/MultilineIfModifier:
Enabled: false
Style/MultilineIfThen:
- Enabled: true
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#no-then-for-multi-line-if-unless
Style/MultilineInPatternThen:
Enabled: false
Style/MultilineMemoization:
@@ -1473,12 +1500,14 @@
Enabled: false
Style/RedundantRegexpEscape:
Enabled: false
+# TODO: Enable this since it's in the styleguide.
Style/RedundantReturn:
Enabled: false
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#avoid-return
Style/RedundantSelf:
Enabled: false
Style/RedundantSelfAssignment:
@@ -1561,12 +1590,12 @@
Style/StringHashKeys:
Enabled: false
Style/StringLiterals:
- Enabled: true
EnforcedStyle: double_quotes
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#double-quotes
Style/StringLiteralsInInterpolation:
Enabled: false
Style/StringMethods:
@@ -1624,11 +1653,13 @@
Enabled: false
Style/TrivialAccessors:
Enabled: false
+# TODO: Enable this since it's in the styleguide.
Style/UnlessElse:
Enabled: false
+ StyleGuide: https://github.com/github/rubocop-github/blob/main/STYLEGUIDE.md#no-else-with-unless
Style/UnlessLogicalOperators:
Enabled: false
Style/UnpackFirst: