From 445ae3c7091b0608db7e172e83f3bc1ed24f2fd1 Mon Sep 17 00:00:00 2001 From: Oskar Edbro Date: Sat, 3 Oct 2020 10:56:30 +0200 Subject: [PATCH] Fixed renamed rubocop configurations --- .rubocop_shopify_styleguide.yml | 43 +++++++++++++++------------------ 1 file changed, 20 insertions(+), 23 deletions(-) diff --git a/.rubocop_shopify_styleguide.yml b/.rubocop_shopify_styleguide.yml index e11b5478c3..245210c0a1 100644 --- a/.rubocop_shopify_styleguide.yml +++ b/.rubocop_shopify_styleguide.yml @@ -13,7 +13,7 @@ Style/Alias: - prefer_alias - prefer_alias_method -Layout/AlignHash: +Layout/HashAlignment: EnforcedHashRocketStyle: key EnforcedColonStyle: key EnforcedLastArgumentHashStyle: ignore_implicit @@ -23,7 +23,7 @@ Layout/AlignHash: - ignore_implicit - ignore_explicit -Layout/AlignParameters: +Layout/ParameterAlignment: EnforcedStyle: with_fixed_indentation SupportedStyles: - with_first_parameter @@ -157,7 +157,7 @@ Naming/FileName: Regex: IgnoreExecutableScripts: true -Layout/IndentFirstArgument: +Layout/FirstArgumentIndentation: EnforcedStyle: consistent SupportedStyles: - consistent @@ -197,7 +197,7 @@ Layout/IndentationConsistency: Layout/IndentationWidth: Width: 2 -Layout/IndentFirstArrayElement: +Layout/FirstArrayElementIndentation: EnforcedStyle: consistent SupportedStyles: - special_inside_parentheses @@ -205,10 +205,10 @@ Layout/IndentFirstArrayElement: - align_brackets IndentationWidth: -Layout/IndentAssignment: +Layout/AssignmentIndentation: IndentationWidth: -Layout/IndentFirstHashElement: +Layout/FirstHashElementIndentation: EnforcedStyle: consistent SupportedStyles: - special_inside_parentheses @@ -311,9 +311,9 @@ Style/PercentQLiterals: Naming/PredicateName: NamePrefix: - is_ - NamePrefixBlacklist: + ForbiddenPrefixes: - is_ - NameWhitelist: + AllowedMethods: - is_a? Exclude: - 'spec/**/*' @@ -438,7 +438,7 @@ Style/TernaryParentheses: - require_no_parentheses AllowSafeAssignment: true -Layout/TrailingBlankLines: +Layout/TrailingEmptyLines: EnforcedStyle: final_newline SupportedStyles: - final_newline @@ -449,7 +449,7 @@ Style/TrivialAccessors: AllowPredicates: true AllowDSLWriters: false IgnoreClassMethods: false - Whitelist: + AllowedMethods: - to_ary - to_a - to_c @@ -600,7 +600,7 @@ Rails/Validation: Naming/AccessorMethodName: Enabled: true -Layout/AlignArray: +Layout/ArrayAlignment: Enabled: true Style/ArrayJoin: @@ -837,7 +837,7 @@ Layout/SpaceInsideRangeLiteral: Style/SymbolLiteral: Enabled: true -Layout/Tab: +Layout/IndentationStyle: Enabled: true Layout/TrailingWhitespace: @@ -846,13 +846,13 @@ Layout/TrailingWhitespace: Style/UnlessElse: Enabled: true -Style/UnneededCapitalW: +Style/RedundantCapitalW: Enabled: true -Style/UnneededInterpolation: +Style/RedundantInterpolation: Enabled: true -Style/UnneededPercentQ: +Style/RedundantPercentQ: Enabled: true Style/VariableInterpolation: @@ -867,7 +867,7 @@ Style/WhileUntilDo: Style/ZeroLengthPredicate: Enabled: true -Layout/IndentHeredoc: +Layout/HeredocIndentation: EnforcedStyle: squiggly Lint/AmbiguousOperator: @@ -891,7 +891,7 @@ Lint/DeprecatedClassMethods: Lint/DuplicateMethods: Enabled: true -Lint/DuplicatedKey: +Lint/DuplicateHashKey: Enabled: true Lint/EachWithObjectArgument: @@ -906,9 +906,6 @@ Lint/EmptyEnsure: Lint/EmptyInterpolation: Enabled: true -Lint/EndInMethod: - Enabled: true - Lint/EnsureReturn: Enabled: true @@ -918,7 +915,7 @@ Lint/FloatOutOfRange: Lint/FormatParameterMismatch: Enabled: true -Lint/HandleExceptions: +Lint/SuppressedException: Enabled: true Lint/ImplicitStringConcatenation: @@ -974,7 +971,7 @@ Lint/ShadowedException: Lint/ShadowingOuterLocalVariable: Enabled: true -Lint/StringConversionInInterpolation: +Lint/RedundantStringCoercion: Enabled: true Lint/UnderscorePrefixedVariableName: @@ -983,7 +980,7 @@ Lint/UnderscorePrefixedVariableName: Lint/UnifiedInteger: Enabled: true -Lint/UnneededSplatExpansion: +Lint/RedundantSplatExpansion: Enabled: true Lint/UnreachableCode: