rubocop.yml in rubocop-shopify-2.0.1 vs rubocop.yml in rubocop-shopify-2.1.0

- old
+ new

@@ -1,1023 +1,661 @@ +inherit_mode: + merge: + - Exclude + - Include + AllCops: - Exclude: - - 'db/schema.rb' - DisabledByDefault: true StyleGuideBaseURL: https://shopify.github.io/ruby-style-guide/ -Lint/AssignmentInCondition: - Enabled: true +Bundler/DuplicatedGem: + Enabled: false -Layout/AccessModifierIndentation: - EnforcedStyle: indent - SupportedStyles: - - outdent - - indent - IndentationWidth: +Bundler/InsecureProtocolSource: + Enabled: false -Style/Alias: - EnforcedStyle: prefer_alias_method - SupportedStyles: - - prefer_alias - - prefer_alias_method +Bundler/OrderedGems: + Enabled: false -Layout/ArgumentAlignment: - EnforcedStyle: with_fixed_indentation - SupportedStyles: - - with_first_argument - - with_fixed_indentation +Gemspec/DateAssignment: + Enabled: false -Layout/HashAlignment: - EnforcedHashRocketStyle: key - EnforcedColonStyle: key - EnforcedLastArgumentHashStyle: ignore_implicit - SupportedLastArgumentHashStyles: - - always_inspect - - always_ignore - - ignore_implicit - - ignore_explicit +Gemspec/DuplicatedAssignment: + Enabled: false -Layout/ParameterAlignment: - EnforcedStyle: with_fixed_indentation - SupportedStyles: - - with_first_parameter - - with_fixed_indentation - IndentationWidth: +Gemspec/OrderedDependencies: + Enabled: false -Style/AndOr: - EnforcedStyle: always - SupportedStyles: - - always - - conditionals +Gemspec/RequiredRubyVersion: + Enabled: false -Style/BarePercentLiterals: - EnforcedStyle: bare_percent - SupportedStyles: - - percent_q - - bare_percent +Gemspec/RubyVersionGlobalsUsage: + Enabled: false -Style/BlockDelimiters: - EnforcedStyle: line_count_based - SupportedStyles: - - line_count_based - - semantic - - braces_for_chaining - ProceduralMethods: - - benchmark - - bm - - bmbm - - create - - each_with_object - - measure - - new - - realtime - - tap - - with_object - FunctionalMethods: - - let - - let! - - subject - - watch - IgnoredMethods: - - lambda - - proc - - it +Layout/ArgumentAlignment: + EnforcedStyle: with_fixed_indentation Layout/CaseIndentation: EnforcedStyle: end - SupportedStyles: - - case - - end - IndentOneStep: false - IndentationWidth: -Style/ClassAndModuleChildren: - EnforcedStyle: nested - SupportedStyles: - - nested - - compact +Layout/ClosingHeredocIndentation: + Enabled: false -Style/ClassCheck: - EnforcedStyle: is_a? - SupportedStyles: - - is_a? - - kind_of? +Layout/EmptyComment: + Enabled: false -Style/CommandLiteral: - EnforcedStyle: percent_x - SupportedStyles: - - backticks - - percent_x - - mixed - AllowInnerBackticks: false +Layout/EmptyLineAfterGuardClause: + Enabled: false -Style/CommentAnnotation: - Keywords: - - TODO - - FIXME - - OPTIMIZE - - HACK - - REVIEW +Layout/EmptyLineAfterMagicComment: + Enabled: false -Style/ConditionalAssignment: - EnforcedStyle: assign_to_condition - SupportedStyles: - - assign_to_condition - - assign_inside_condition - SingleLineConditionsOnly: true +Layout/EmptyLinesAroundArguments: + Enabled: false -Layout/DotPosition: - EnforcedStyle: leading - SupportedStyles: - - leading - - trailing +Layout/EmptyLinesAroundAttributeAccessor: + Enabled: false -Style/EmptyElse: - EnforcedStyle: both - SupportedStyles: - - empty - - nil - - both +Layout/EmptyLinesAroundBeginBody: + Enabled: false -Layout/EmptyLineBetweenDefs: - AllowAdjacentOneLineDefs: false +Layout/EmptyLinesAroundExceptionHandlingKeywords: + Enabled: false -Layout/EmptyLinesAroundBlockBody: - EnforcedStyle: no_empty_lines - SupportedStyles: - - empty_lines - - no_empty_lines +Layout/EndAlignment: + EnforcedStyleAlignWith: variable -Layout/EmptyLinesAroundClassBody: - EnforcedStyle: no_empty_lines - SupportedStyles: - - empty_lines - - empty_lines_except_namespace - - no_empty_lines +Layout/FirstArgumentIndentation: + Enabled: false -Layout/EmptyLinesAroundModuleBody: - EnforcedStyle: no_empty_lines - SupportedStyles: - - empty_lines - - empty_lines_except_namespace - - no_empty_lines - -Layout/ExtraSpacing: - AllowForAlignment: true - ForceEqualSignAlignment: false - -Naming/FileName: - Exclude: [] - ExpectMatchingDefinition: false - Regex: - IgnoreExecutableScripts: true - -Style/For: - EnforcedStyle: each - SupportedStyles: - - for - - each - -Style/FormatString: - EnforcedStyle: format - SupportedStyles: - - format - - sprintf - - percent - -Style/FrozenStringLiteralComment: - Details: >- - Add `# frozen_string_literal: true` to the top of the file. Frozen string - literals will become the default in a future Ruby version, and we want to - make sure we're ready. - EnforcedStyle: always - SupportedStyles: - - always - - never - SafeAutoCorrect: true - -Style/GlobalVars: - AllowedVariables: [] - -Style/HashSyntax: - EnforcedStyle: ruby19 - SupportedStyles: - - ruby19 - - hash_rockets - - no_mixed_keys - - ruby19_no_mixed_keys - UseHashRocketsWithSymbolValues: false - PreferHashRocketsForNonAlnumEndingSymbols: false - -Layout/IndentationConsistency: - EnforcedStyle: normal - SupportedStyles: - - normal - - rails - -Layout/IndentationWidth: - Width: 2 - Layout/FirstArrayElementIndentation: EnforcedStyle: consistent - SupportedStyles: - - special_inside_parentheses - - consistent - - align_brackets - IndentationWidth: -Layout/AssignmentIndentation: - IndentationWidth: - Layout/FirstHashElementIndentation: EnforcedStyle: consistent - SupportedStyles: - - special_inside_parentheses - - consistent - - align_braces - IndentationWidth: -Style/LambdaCall: - EnforcedStyle: call - SupportedStyles: - - call - - braces +Layout/FirstParameterIndentation: + Enabled: false -Style/Next: - EnforcedStyle: skip_modifier_ifs - MinBodyLength: 3 - SupportedStyles: - - skip_modifier_ifs - - always +Layout/HashAlignment: + EnforcedLastArgumentHashStyle: ignore_implicit -Style/NonNilCheck: - IncludeSemanticChanges: false +Layout/LeadingEmptyLines: + Enabled: false -Style/MethodCallWithArgsParentheses: - Enabled: true - IgnoreMacros: true - IgnoredMethods: - - require - - require_relative - - require_dependency - - yield - - raise - - puts - Exclude: - - '**/Gemfile' +Layout/LineLength: + IgnoreCopDirectives: false + IgnoredPatterns: + - "\\A\\s*(remote_)?test(_\\w+)?\\s.*(do|->)(\\s|\\Z)" -Style/MethodDefParentheses: - EnforcedStyle: require_parentheses - SupportedStyles: - - require_parentheses - - require_no_parentheses - - require_no_parentheses_except_multiline - -Naming/MethodName: - EnforcedStyle: snake_case - SupportedStyles: - - snake_case - - camelCase - -Layout/MultilineArrayBraceLayout: - EnforcedStyle: symmetrical - SupportedStyles: - - symmetrical - - new_line - - same_line - -Layout/MultilineHashBraceLayout: - EnforcedStyle: symmetrical - SupportedStyles: - - symmetrical - - new_line - - same_line - -Layout/MultilineMethodCallBraceLayout: - EnforcedStyle: symmetrical - SupportedStyles: - - symmetrical - - new_line - - same_line - Layout/MultilineMethodCallIndentation: EnforcedStyle: indented - SupportedStyles: - - aligned - - indented - - indented_relative_to_receiver IndentationWidth: 2 -Layout/MultilineMethodDefinitionBraceLayout: - EnforcedStyle: symmetrical - SupportedStyles: - - symmetrical - - new_line - - same_line +Layout/MultilineOperationIndentation: + Enabled: false -Style/NumericLiteralPrefix: - EnforcedOctalStyle: zero_only - SupportedOctalStyles: - - zero_with_o - - zero_only +Layout/ParameterAlignment: + EnforcedStyle: with_fixed_indentation -Style/ParenthesesAroundCondition: - AllowSafeAssignment: true +Layout/SpaceAroundMethodCallOperator: + Enabled: false -Style/PercentQLiterals: - EnforcedStyle: lower_case_q - SupportedStyles: - - lower_case_q - - upper_case_q +Layout/SpaceBeforeBrackets: + Enabled: false -Naming/PredicateName: - NamePrefix: - - is_ - ForbiddenPrefixes: - - is_ - AllowedMethods: - - is_a? - Exclude: - - 'spec/**/*' +Layout/SpaceInLambdaLiteral: + Enabled: false -Style/PreferredHashMethods: - EnforcedStyle: short - SupportedStyles: - - short - - verbose +Lint/AmbiguousAssignment: + Enabled: false -Style/RaiseArgs: - EnforcedStyle: exploded - SupportedStyles: - - compact - - exploded +Lint/AmbiguousBlockAssociation: + Enabled: false -Style/RedundantReturn: - AllowMultipleReturnValues: false +Lint/BooleanSymbol: + Enabled: false -Style/RegexpLiteral: - EnforcedStyle: mixed - SupportedStyles: - - slashes - - percent_r - - mixed - AllowInnerSlashes: false +Lint/ConstantDefinitionInBlock: + Enabled: false -Style/SafeNavigation: - ConvertCodeThatCanStartToReturnNil: false - Enabled: true +Lint/DeprecatedConstants: + Enabled: false -Lint/SafeNavigationChain: - Enabled: true +Lint/DisjunctiveAssignmentInConstructor: + Enabled: false -Style/Semicolon: - AllowAsExpressionSeparator: false +Lint/DuplicateBranch: + Enabled: false -Style/SignalException: - EnforcedStyle: only_raise - SupportedStyles: - - only_raise - - only_fail - - semantic +Lint/DuplicateCaseCondition: + Enabled: false -Style/SingleLineMethods: - AllowIfMethodIsEmpty: true +Lint/DuplicateElsifCondition: + Enabled: false -Layout/SpaceBeforeFirstArg: - AllowForAlignment: true +Lint/DuplicateRegexpCharacterClassElement: + Enabled: false -Style/SpecialGlobalVars: - EnforcedStyle: use_english_names - SupportedStyles: - - use_perl_names - - use_english_names +Lint/DuplicateRequire: + Enabled: false -Style/StabbyLambdaParentheses: - EnforcedStyle: require_parentheses - SupportedStyles: - - require_parentheses - - require_no_parentheses +Lint/DuplicateRescueException: + Enabled: false -Style/StringLiterals: - Enabled: true - EnforcedStyle: double_quotes - ConsistentQuotesInMultiline: false +Lint/EmptyBlock: + Enabled: false -Style/StringLiteralsInInterpolation: - Enabled: true - EnforcedStyle: double_quotes +Lint/EmptyClass: + Enabled: false -Layout/SpaceAroundBlockParameters: - EnforcedStyleInsidePipes: no_space - SupportedStylesInsidePipes: - - space - - no_space +Lint/EmptyConditionalBody: + Enabled: false -Layout/SpaceAroundEqualsInParameterDefault: - EnforcedStyle: space - SupportedStyles: - - space - - no_space +Lint/EmptyExpression: + Enabled: false -Layout/SpaceAroundOperators: - AllowForAlignment: true +Lint/EmptyFile: + Enabled: false -Layout/SpaceBeforeBlockBraces: - EnforcedStyle: space - EnforcedStyleForEmptyBraces: space - SupportedStyles: - - space - - no_space +Lint/EmptyWhen: + Enabled: false -Layout/SpaceInsideBlockBraces: - EnforcedStyle: space - SupportedStyles: - - space - - no_space - EnforcedStyleForEmptyBraces: no_space - SpaceBeforeBlockParameters: true +Lint/ErbNewArguments: + Enabled: false -Layout/SpaceInsideHashLiteralBraces: - EnforcedStyle: space - EnforcedStyleForEmptyBraces: no_space - SupportedStyles: - - space - - no_space - - compact +Lint/FloatComparison: + Enabled: false -Layout/SpaceInsideStringInterpolation: - EnforcedStyle: no_space - SupportedStyles: - - space - - no_space +Lint/HashCompareByIdentity: + Enabled: false -Style/SymbolProc: - IgnoredMethods: - - respond_to - - define_method +Lint/IdentityComparison: + Enabled: false -Style/TernaryParentheses: - EnforcedStyle: require_no_parentheses - SupportedStyles: - - require_parentheses - - require_no_parentheses - AllowSafeAssignment: true +Lint/InterpolationCheck: + Enabled: false -Layout/TrailingEmptyLines: - EnforcedStyle: final_newline - SupportedStyles: - - final_newline - - final_blank_line +Lint/LambdaWithoutLiteralBlock: + Enabled: false -Style/TrivialAccessors: - ExactNameMatch: true - AllowPredicates: true - AllowDSLWriters: false - IgnoreClassMethods: false - AllowedMethods: - - to_ary - - to_a - - to_c - - to_enum - - to_h - - to_hash - - to_i - - to_int - - to_io - - to_open - - to_path - - to_proc - - to_r - - to_regexp - - to_str - - to_s - - to_sym +Lint/MissingCopEnableDirective: + Enabled: false -Naming/VariableName: - EnforcedStyle: snake_case - SupportedStyles: - - snake_case - - camelCase +Lint/MixedRegexpCaptureTypes: + Enabled: false -Style/WhileUntilModifier: - Enabled: true +Lint/MultipleComparison: + Enabled: false -Metrics/BlockNesting: - Max: 3 +Lint/NestedPercentLiteral: + Enabled: false -Layout/LineLength: - Max: 120 - AllowHeredoc: true - AllowURI: true - URISchemes: - - http - - https - IgnoreCopDirectives: false - IgnoredPatterns: - - '\A\s*(remote_)?test(_\w+)?\s.*(do|->)(\s|\Z)' +Lint/NoReturnInBeginEndBlocks: + Enabled: false -Metrics/ParameterLists: - Max: 5 - CountKeywordArgs: false +Lint/NonDeterministicRequireOrder: + Enabled: false -Layout/BlockAlignment: - EnforcedStyleAlignWith: either - SupportedStylesAlignWith: - - either - - start_of_block - - start_of_line +Lint/NumberedParameterAssignment: + Enabled: false -Layout/EndAlignment: - EnforcedStyleAlignWith: variable - SupportedStylesAlignWith: - - keyword - - variable - - start_of_line +Lint/OrAssignmentToConstant: + Enabled: false -Layout/DefEndAlignment: - EnforcedStyleAlignWith: start_of_line - SupportedStylesAlignWith: - - start_of_line - - def +Lint/OutOfRangeRegexpRef: + Enabled: false -Lint/InheritException: - EnforcedStyle: runtime_error - SupportedStyles: - - runtime_error - - standard_error +Lint/RaiseException: + Enabled: false -Lint/UnusedBlockArgument: - IgnoreEmptyBlocks: true - AllowUnusedKeywordArguments: false +Lint/RedundantDirGlobSort: + Enabled: false -Lint/UnusedMethodArgument: - AllowUnusedKeywordArguments: false - IgnoreEmptyMethods: true +Lint/RedundantRequireStatement: + Enabled: false -Naming/AccessorMethodName: - Enabled: true +Lint/RedundantSafeNavigation: + Enabled: false -Layout/ArrayAlignment: - Enabled: true +Lint/RedundantWithIndex: + Enabled: false -Style/ArrayJoin: - Enabled: true +Lint/RedundantWithObject: + Enabled: false -Naming/AsciiIdentifiers: - Enabled: true +Lint/RegexpAsCondition: + Enabled: false -Style/Attr: - Enabled: true +Lint/RescueType: + Enabled: false -Style/BeginBlock: - Enabled: true +Lint/ReturnInVoidContext: + Enabled: false -Style/BlockComments: - Enabled: true +Lint/SafeNavigationConsistency: + Enabled: false -Layout/BlockEndNewline: - Enabled: true +Lint/SafeNavigationWithEmpty: + Enabled: false -Style/CaseEquality: - Enabled: true - AllowOnConstant: true +Lint/ScriptPermission: + Enabled: false -Style/CharacterLiteral: - Enabled: true +Lint/SelfAssignment: + Enabled: false -Naming/ClassAndModuleCamelCase: - Enabled: true +Lint/SendWithMixinArgument: + Enabled: false -Style/ClassMethods: - Enabled: true +Lint/ShadowedArgument: + Enabled: false -Style/ClassVars: - Enabled: true +Lint/StructNewOverride: + Enabled: false -Layout/ClosingParenthesisIndentation: - Enabled: true +Lint/SymbolConversion: + Enabled: false -Style/ColonMethodCall: - Enabled: true +Lint/ToEnumArguments: + Enabled: false -Layout/CommentIndentation: - Enabled: true +Lint/ToJSON: + Enabled: false -Naming/ConstantName: - Enabled: true +Lint/TopLevelReturnWithArgument: + Enabled: false -Style/DateTime: - Enabled: true +Lint/TrailingCommaInAttributeDeclaration: + Enabled: false -Style/DefWithParentheses: - Enabled: true +Lint/TripleQuotes: + Enabled: false -Style/EachForSimpleLoop: - Enabled: true +Lint/UnexpectedBlockArity: + Enabled: false -Style/EachWithObject: - Enabled: true +Lint/UnmodifiedReduceAccumulator: + Enabled: false -Layout/ElseAlignment: - Enabled: true +Lint/UnreachableLoop: + Enabled: false -Style/EmptyCaseCondition: - Enabled: true +Lint/UriEscapeUnescape: + Enabled: false -Layout/EmptyLines: - Enabled: true +Lint/UriRegexp: + Enabled: false -Layout/EmptyLinesAroundAccessModifier: - Enabled: true +Lint/UselessMethodDefinition: + Enabled: false -Layout/EmptyLinesAroundMethodBody: - Enabled: true +Lint/UselessTimes: + Enabled: false -Style/EmptyLiteral: - Enabled: true +Metrics/AbcSize: + Enabled: false -Style/EndBlock: - Enabled: true +Metrics/BlockLength: + Enabled: false -Layout/EndOfLine: - Enabled: true +Metrics/ClassLength: + Enabled: false -Style/EvenOdd: - Enabled: true +Metrics/CyclomaticComplexity: + Enabled: false -Layout/InitialIndentation: - Enabled: true +Metrics/MethodLength: + Enabled: false -Lint/FlipFlop: - Enabled: true +Metrics/ModuleLength: + Enabled: false -Style/IfInsideElse: - Enabled: true +Metrics/ParameterLists: + CountKeywordArgs: false -Style/IfUnlessModifierOfIfUnless: - Enabled: true +Metrics/PerceivedComplexity: + Enabled: false -Style/IfWithSemicolon: - Enabled: true +Migration/DepartmentName: + Enabled: false -Style/IdenticalConditionalBranches: - Enabled: true +Naming/BlockParameterName: + Enabled: false -Layout/IndentationStyle: - Enabled: true +Naming/HeredocDelimiterCase: + Enabled: false -Style/InfiniteLoop: - Enabled: true +Naming/HeredocDelimiterNaming: + Enabled: false -Layout/LeadingCommentSpace: - Enabled: true +Naming/MemoizedInstanceVariableName: + Enabled: false -Style/LineEndConcatenation: - Enabled: true +Naming/MethodParameterName: + Enabled: false -Style/MethodCallWithoutArgsParentheses: - Enabled: true +Naming/PredicateName: + NamePrefix: + - is_ + ForbiddenPrefixes: + - is_ -Lint/MissingSuper: - Enabled: true +Naming/RescuedExceptionsVariableName: + Enabled: false -Style/MissingRespondToMissing: - Enabled: true +Naming/VariableNumber: + Enabled: false -Layout/MultilineBlockLayout: - Enabled: true +Security/MarshalLoad: + Enabled: false -Style/MultilineIfThen: - Enabled: true +Security/YAMLLoad: + Enabled: false -Style/MultilineMemoization: - Enabled: true +Style/AccessModifierDeclarations: + Enabled: false -Style/MultilineTernaryOperator: - Enabled: true +Style/AccessorGrouping: + Enabled: false -Style/NegatedIf: - Enabled: true +Style/Alias: + EnforcedStyle: prefer_alias_method -Style/NegatedWhile: - Enabled: true +Style/AndOr: + EnforcedStyle: always -Style/NestedModifier: - Enabled: true +Style/ArgumentsForwarding: + Enabled: false -Style/NestedParenthesizedCalls: - Enabled: true +Style/AsciiComments: + Enabled: false -Style/NestedTernaryOperator: - Enabled: true +Style/BisectedAttrAccessor: + Enabled: false -Style/NilComparison: - Enabled: true +Style/CaseEquality: + AllowOnConstant: true -Style/Not: - Enabled: true +Style/CaseLikeIf: + Enabled: false -Style/OneLineConditional: - Enabled: true +Style/ClassEqualityComparison: + Enabled: false -Naming/BinaryOperatorParameterName: - Enabled: true +Style/CollectionCompact: + Enabled: false -Style/OptionalArguments: - Enabled: true +Style/ColonMethodDefinition: + Enabled: false -Style/ParallelAssignment: - Enabled: true +Style/CombinableLoops: + Enabled: false -Style/PerlBackrefs: - Enabled: true +Style/CommandLiteral: + EnforcedStyle: percent_x -Style/Proc: - Enabled: true +Style/CommentedKeyword: + Enabled: false -Style/RedundantBegin: +Style/DateTime: Enabled: true -Style/RedundantException: - Enabled: true +Style/Dir: + Enabled: false -Style/RedundantFreeze: - Enabled: true +Style/DocumentDynamicEvalDefinition: + Enabled: false -Style/RedundantParentheses: - Enabled: true +Style/Documentation: + Enabled: false -Style/RedundantSelf: - Enabled: true +Style/DoubleCopDisableDirective: + Enabled: false -Style/RedundantSortBy: - Enabled: true +Style/DoubleNegation: + Enabled: false -Layout/RescueEnsureAlignment: - Enabled: true +Style/EmptyBlockParameter: + Enabled: false -Style/RescueModifier: - Enabled: true +Style/EmptyLambdaParameter: + Enabled: false -Style/Sample: - Enabled: true +Style/EmptyMethod: + Enabled: false -Style/SelfAssignment: - Enabled: true +Style/Encoding: + Enabled: false -Layout/SpaceAfterColon: - Enabled: true +Style/EndlessMethod: + Enabled: false -Layout/SpaceAfterComma: - Enabled: true +Style/EvalWithLocation: + Enabled: false -Layout/SpaceAfterMethodName: - Enabled: true +Style/ExpandPathArguments: + Enabled: false -Layout/SpaceAfterNot: - Enabled: true +Style/ExplicitBlockArgument: + Enabled: false -Layout/SpaceAfterSemicolon: - Enabled: true +Style/ExponentialNotation: + Enabled: false -Layout/SpaceBeforeComma: - Enabled: true +Style/FloatDivision: + Enabled: false -Layout/SpaceBeforeComment: - Enabled: true +Style/FormatStringToken: + Enabled: false -Layout/SpaceBeforeSemicolon: - Enabled: true +Style/FrozenStringLiteralComment: + SafeAutoCorrect: true + Details: 'Add `# frozen_string_literal: true` to the top of the file. Frozen string + literals will become the default in a future Ruby version, and we want to make + sure we''re ready.' -Layout/SpaceAroundKeyword: - Enabled: true +Style/GlobalStdStream: + Enabled: false -Layout/SpaceInsideArrayPercentLiteral: - Enabled: true +Style/GuardClause: + Enabled: false -Layout/SpaceInsidePercentLiteralDelimiters: - Enabled: true +Style/HashAsLastArrayItem: + Enabled: false -Layout/SpaceInsideArrayLiteralBrackets: - Enabled: true +Style/HashConversion: + Enabled: false -Layout/SpaceInsideParens: - Enabled: true +Style/HashEachMethods: + Enabled: false -Layout/SpaceInsideRangeLiteral: - Enabled: true +Style/HashExcept: + Enabled: false -Style/SymbolLiteral: - Enabled: true +Style/HashLikeCase: + Enabled: false -Layout/TrailingWhitespace: - Enabled: true +Style/HashTransformKeys: + Enabled: false -Style/UnlessElse: - Enabled: true +Style/HashTransformValues: + Enabled: false -Style/RedundantCapitalW: - Enabled: true +Style/IfUnlessModifier: + Enabled: false -Style/RedundantInterpolation: - Enabled: true +Style/IfWithBooleanLiteralBranches: + Enabled: false -Style/RedundantPercentQ: - Enabled: true +Style/InverseMethods: + Enabled: false -Style/VariableInterpolation: - Enabled: true +Style/KeywordParametersOrder: + Enabled: false -Style/WhenThen: - Enabled: true +Style/Lambda: + Enabled: false -Style/WhileUntilDo: +Style/MethodCallWithArgsParentheses: Enabled: true + IgnoredMethods: + - require + - require_relative + - require_dependency + - yield + - raise + - puts + Exclude: + - "/**/Gemfile" -Style/ZeroLengthPredicate: - Enabled: true +Style/MinMax: + Enabled: false -Layout/HeredocIndentation: - Enabled: true +Style/MixinGrouping: + Enabled: false -Lint/AmbiguousOperator: - Enabled: true +Style/MixinUsage: + Enabled: false -Lint/AmbiguousRegexpLiteral: - Enabled: true +Style/ModuleFunction: + EnforcedStyle: extend_self -Lint/CircularArgumentReference: - Enabled: true +Style/MultilineBlockChain: + Enabled: false -Layout/ConditionPosition: - Enabled: true +Style/MultilineIfModifier: + Enabled: false -Lint/Debugger: - Enabled: true +Style/MultilineWhenThen: + Enabled: false -Lint/DeprecatedClassMethods: - Enabled: true +Style/MultipleComparison: + Enabled: false -Lint/DuplicateMethods: - Enabled: true +Style/MutableConstant: + Enabled: false -Lint/DuplicateHashKey: - Enabled: true +Style/NegatedIfElseCondition: + Enabled: false -Lint/EachWithObjectArgument: - Enabled: true +Style/NegatedUnless: + Enabled: false -Lint/ElseLayout: - Enabled: true +Style/NilLambda: + Enabled: false -Lint/EmptyEnsure: - Enabled: true +Style/NumericLiteralPrefix: + EnforcedOctalStyle: zero_only -Lint/EmptyInterpolation: - Enabled: true +Style/NumericLiterals: + Enabled: false -Lint/EnsureReturn: - Enabled: true +Style/NumericPredicate: + Enabled: false -Lint/FloatOutOfRange: - Enabled: true +Style/OptionalBooleanParameter: + Enabled: false -Lint/FormatParameterMismatch: - Enabled: true +Style/OrAssignment: + Enabled: false -Lint/SuppressedException: - AllowComments: true +Style/PercentLiteralDelimiters: + Enabled: false -Lint/ImplicitStringConcatenation: - Description: Checks for adjacent string literals on the same line, which could - better be represented as a single string literal. +Style/RandomWithOffset: + Enabled: false -Lint/IneffectiveAccessModifier: - Description: Checks for attempts to use `private` or `protected` to set the visibility - of a class method, which does not work. +Style/RedundantArgument: + Enabled: false -Lint/LiteralAsCondition: - Enabled: true +Style/RedundantAssignment: + Enabled: false -Lint/LiteralInInterpolation: - Enabled: true +Style/RedundantCondition: + Enabled: false -Lint/Loop: - Description: Use Kernel#loop with break rather than begin/end/until or begin/end/while - for post-loop tests. +Style/RedundantConditional: + Enabled: false -Lint/NestedMethodDefinition: - Enabled: true +Style/RedundantFetchBlock: + Enabled: false -Lint/NextWithoutAccumulator: - Description: Do not omit the accumulator when calling `next` in a `reduce`/`inject` - block. +Style/RedundantFileExtensionInRequire: + Enabled: false -Lint/NonLocalExitFromIterator: - Enabled: true +Style/RedundantRegexpCharacterClass: + Enabled: false -Lint/ParenthesesAsGroupedExpression: - Enabled: true +Style/RedundantRegexpEscape: + Enabled: false -Lint/PercentStringArray: - Enabled: true +Style/RedundantSelfAssignment: + Enabled: false -Lint/PercentSymbolArray: - Enabled: true +Style/RedundantSort: + Enabled: false -Lint/RandOne: - Description: Checks for `rand(1)` calls. Such calls always return `0` and most - likely a mistake. +Style/RegexpLiteral: + EnforcedStyle: mixed -Lint/RequireParentheses: - Enabled: true +Style/RescueStandardError: + Enabled: false -Lint/RescueException: - Enabled: true +Style/SingleArgumentDig: + Enabled: false -Lint/ShadowedException: - Enabled: true +Style/SlicingWithRange: + Enabled: false -Lint/ShadowingOuterLocalVariable: - Enabled: true +Style/SoleNestedConditional: + Enabled: false -Lint/RedundantStringCoercion: - Enabled: true +Style/StderrPuts: + Enabled: false -Lint/UnderscorePrefixedVariableName: - Enabled: true +Style/StringChars: + Enabled: false -Lint/UnifiedInteger: - Enabled: true +Style/StringConcatenation: + Enabled: false -Lint/RedundantCopDisableDirective: - Enabled: true +Style/StringLiterals: + EnforcedStyle: double_quotes -Lint/RedundantCopEnableDirective: - Enabled: true +Style/StringLiteralsInInterpolation: + EnforcedStyle: double_quotes -Lint/RedundantSplatExpansion: - Enabled: true +Style/StructInheritance: + Enabled: false -Lint/UnreachableCode: - Enabled: true +Style/SwapValues: + Enabled: false -Lint/UselessAccessModifier: - ContextCreatingMethods: [] +Style/SymbolArray: + EnforcedStyle: brackets -Lint/UselessAssignment: - Enabled: true +Style/TrailingBodyOnMethodDefinition: + Enabled: false -Lint/BinaryOperatorWithIdenticalOperands: - Enabled: true +Style/TrailingCommaInArguments: + Enabled: false -Lint/UselessElseWithoutRescue: - Enabled: true - -Lint/UselessSetterCall: - Enabled: true - -Lint/Void: - Enabled: true - -Security/Eval: - Enabled: true - -Security/JSONLoad: - Enabled: true - -Security/Open: - Enabled: true - -Lint/BigDecimalNew: - Enabled: true - -Style/Strip: - Enabled: true - -Style/TrailingBodyOnClass: - Enabled: true - -Style/TrailingBodyOnModule: - Enabled: true - Style/TrailingCommaInArrayLiteral: EnforcedStyleForMultiline: comma - Enabled: true Style/TrailingCommaInHashLiteral: EnforcedStyleForMultiline: comma - Enabled: true -Layout/SpaceInsideReferenceBrackets: - EnforcedStyle: no_space - EnforcedStyleForEmptyBrackets: no_space - Enabled: true +Style/TrailingMethodEndStatement: + Enabled: false -Style/ModuleFunction: - EnforcedStyle: extend_self +Style/TrailingUnderscoreVariable: + Enabled: false -Lint/OrderedMagicComments: - Enabled: true +Style/UnpackFirst: + Enabled: false -Lint/DeprecatedOpenSSLConstant: - Enabled: true +Style/WordArray: + EnforcedStyle: brackets + +Style/YodaCondition: + Enabled: false