Update inherited rubocop shopify style guide configuration

This commit is contained in:
Dylan Thacker-Smith
2020-12-11 14:14:15 -05:00
parent f7d67b946e
commit 00be1e4dd4
@@ -1,5 +1,3 @@
# Recommended rubocop version: ~> 0.78.0
AllCops: AllCops:
Exclude: Exclude:
- 'db/schema.rb' - 'db/schema.rb'
@@ -78,13 +76,6 @@ Style/BlockDelimiters:
- proc - proc
- it - it
Style/BracesAroundHashParameters:
EnforcedStyle: no_braces
SupportedStyles:
- braces
- no_braces
- context_dependent
Layout/CaseIndentation: Layout/CaseIndentation:
EnforcedStyle: end EnforcedStyle: end
SupportedStyles: SupportedStyles:
@@ -204,6 +195,7 @@ Style/FrozenStringLiteralComment:
SupportedStyles: SupportedStyles:
- always - always
- never - never
SafeAutoCorrect: true
Style/GlobalVars: Style/GlobalVars:
AllowedVariables: [] AllowedVariables: []
@@ -273,7 +265,7 @@ Style/MethodCallWithArgsParentheses:
- raise - raise
- puts - puts
Exclude: Exclude:
- Gemfile - '**/Gemfile'
Style/MethodDefParentheses: Style/MethodDefParentheses:
EnforcedStyle: require_parentheses EnforcedStyle: require_parentheses
@@ -586,6 +578,7 @@ Layout/BlockEndNewline:
Style/CaseEquality: Style/CaseEquality:
Enabled: true Enabled: true
AllowOnConstant: true
Style/CharacterLiteral: Style/CharacterLiteral:
Enabled: true Enabled: true
@@ -668,6 +661,9 @@ Style/IfWithSemicolon:
Style/IdenticalConditionalBranches: Style/IdenticalConditionalBranches:
Enabled: true Enabled: true
Layout/IndentationStyle:
Enabled: true
Style/InfiniteLoop: Style/InfiniteLoop:
Enabled: true Enabled: true
@@ -680,7 +676,7 @@ Style/LineEndConcatenation:
Style/MethodCallWithoutArgsParentheses: Style/MethodCallWithoutArgsParentheses:
Enabled: true Enabled: true
Style/MethodMissingSuper: Lint/MissingSuper:
Enabled: true Enabled: true
Style/MissingRespondToMissing: Style/MissingRespondToMissing:
@@ -812,9 +808,6 @@ Layout/SpaceInsideRangeLiteral:
Style/SymbolLiteral: Style/SymbolLiteral:
Enabled: true Enabled: true
Layout/Tab:
Enabled: true
Layout/TrailingWhitespace: Layout/TrailingWhitespace:
Enabled: true Enabled: true
@@ -843,7 +836,7 @@ Style/ZeroLengthPredicate:
Enabled: true Enabled: true
Layout/HeredocIndentation: Layout/HeredocIndentation:
EnforcedStyle: squiggly Enabled: true
Lint/AmbiguousOperator: Lint/AmbiguousOperator:
Enabled: true Enabled: true
@@ -881,9 +874,6 @@ Lint/EmptyEnsure:
Lint/EmptyInterpolation: Lint/EmptyInterpolation:
Enabled: true Enabled: true
Lint/EndInMethod:
Enabled: true
Lint/EnsureReturn: Lint/EnsureReturn:
Enabled: true Enabled: true
@@ -976,7 +966,7 @@ Lint/UselessAccessModifier:
Lint/UselessAssignment: Lint/UselessAssignment:
Enabled: true Enabled: true
Lint/UselessComparison: Lint/BinaryOperatorWithIdenticalOperands:
Enabled: true Enabled: true
Lint/UselessElseWithoutRescue: Lint/UselessElseWithoutRescue:
@@ -1027,3 +1017,6 @@ Style/ModuleFunction:
Lint/OrderedMagicComments: Lint/OrderedMagicComments:
Enabled: true Enabled: true
Lint/DeprecatedOpenSSLConstant:
Enabled: true