diff --git a/rubocop.yml b/rubocop.yml index eb553d00..82d7dc25 100644 --- a/rubocop.yml +++ b/rubocop.yml @@ -1,761 +1,643 @@ inherit_mode: merge: - - Exclude - - Include + - Exclude + - Include AllCops: - DisabledByDefault: true StyleGuideBaseURL: https://shopify.github.io/ruby-style-guide/ -Lint/AssignmentInCondition: - Enabled: true +Bundler/DuplicatedGem: + Enabled: false -Layout/AccessModifierIndentation: - EnforcedStyle: indent +Bundler/InsecureProtocolSource: + Enabled: false -Style/Alias: - EnforcedStyle: prefer_alias_method +Bundler/OrderedGems: + Enabled: false -Layout/ArgumentAlignment: - EnforcedStyle: with_fixed_indentation +Gemspec/DateAssignment: + Enabled: false -Layout/HashAlignment: - EnforcedHashRocketStyle: key - EnforcedColonStyle: key - EnforcedLastArgumentHashStyle: ignore_implicit +Gemspec/DuplicatedAssignment: + Enabled: false -Layout/ParameterAlignment: - EnforcedStyle: with_fixed_indentation +Gemspec/OrderedDependencies: + Enabled: false -Style/AndOr: - EnforcedStyle: always +Gemspec/RequiredRubyVersion: + Enabled: false -Style/BarePercentLiterals: - EnforcedStyle: bare_percent +Gemspec/RubyVersionGlobalsUsage: + Enabled: false -Style/BlockDelimiters: - EnforcedStyle: line_count_based +Layout/ArgumentAlignment: + EnforcedStyle: with_fixed_indentation Layout/CaseIndentation: EnforcedStyle: end - IndentOneStep: false - -Style/ClassAndModuleChildren: - EnforcedStyle: nested - -Style/ClassCheck: - EnforcedStyle: is_a? - -Style/CommandLiteral: - EnforcedStyle: percent_x - AllowInnerBackticks: false -Style/CommentAnnotation: - Enabled: true - -Style/ConditionalAssignment: - EnforcedStyle: assign_to_condition - SingleLineConditionsOnly: true - -Layout/DotPosition: - EnforcedStyle: leading - -Style/EmptyElse: - EnforcedStyle: both - -Layout/EmptyLineBetweenDefs: - AllowAdjacentOneLineDefs: false +Layout/ClosingHeredocIndentation: + Enabled: false -Layout/EmptyLinesAroundBlockBody: - EnforcedStyle: no_empty_lines +Layout/EmptyComment: + Enabled: false -Layout/EmptyLinesAroundClassBody: - EnforcedStyle: no_empty_lines +Layout/EmptyLineAfterGuardClause: + Enabled: false -Layout/EmptyLinesAroundModuleBody: - EnforcedStyle: no_empty_lines +Layout/EmptyLineAfterMagicComment: + Enabled: false -Layout/ExtraSpacing: - AllowForAlignment: true - ForceEqualSignAlignment: false +Layout/EmptyLinesAroundArguments: + Enabled: false -Naming/FileName: - ExpectMatchingDefinition: false - IgnoreExecutableScripts: true - -Style/For: - EnforcedStyle: each - -Style/FormatString: - EnforcedStyle: format - -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 - SafeAutoCorrect: true +Layout/EmptyLinesAroundAttributeAccessor: + Enabled: false -Style/GlobalVars: - Enabled: true +Layout/EmptyLinesAroundBeginBody: + Enabled: false -Style/HashSyntax: - EnforcedStyle: ruby19 - UseHashRocketsWithSymbolValues: false - PreferHashRocketsForNonAlnumEndingSymbols: false +Layout/EmptyLinesAroundExceptionHandlingKeywords: + Enabled: false -Layout/IndentationConsistency: - EnforcedStyle: normal +Layout/EndAlignment: + EnforcedStyleAlignWith: variable -Layout/IndentationWidth: - Width: 2 +Layout/FirstArgumentIndentation: + Enabled: false Layout/FirstArrayElementIndentation: EnforcedStyle: consistent -Layout/AssignmentIndentation: - Enabled: true - Layout/FirstHashElementIndentation: EnforcedStyle: consistent -Style/LambdaCall: - EnforcedStyle: call - -Style/Next: - EnforcedStyle: skip_modifier_ifs - MinBodyLength: 3 - -Style/NonNilCheck: - IncludeSemanticChanges: false +Layout/FirstParameterIndentation: + Enabled: false -Style/MethodCallWithArgsParentheses: - Enabled: true - IgnoreMacros: true - IgnoredMethods: - - require - - require_relative - - require_dependency - - yield - - raise - - puts - Exclude: - - '**/Gemfile' - -Style/MethodDefParentheses: - EnforcedStyle: require_parentheses - -Naming/MethodName: - EnforcedStyle: snake_case - -Layout/MultilineArrayBraceLayout: - EnforcedStyle: symmetrical +Layout/HashAlignment: + EnforcedLastArgumentHashStyle: ignore_implicit -Layout/MultilineHashBraceLayout: - EnforcedStyle: symmetrical +Layout/LeadingEmptyLines: + Enabled: false -Layout/MultilineMethodCallBraceLayout: - EnforcedStyle: symmetrical +Layout/LineLength: + IgnoreCopDirectives: false + IgnoredPatterns: + - "\\A\\s*(remote_)?test(_\\w+)?\\s.*(do|->)(\\s|\\Z)" Layout/MultilineMethodCallIndentation: EnforcedStyle: indented IndentationWidth: 2 -Layout/MultilineMethodDefinitionBraceLayout: - EnforcedStyle: symmetrical - -Style/NumericLiteralPrefix: - EnforcedOctalStyle: zero_only - -Style/ParenthesesAroundCondition: - AllowSafeAssignment: true - -Style/PercentQLiterals: - EnforcedStyle: lower_case_q - -Naming/PredicateName: - NamePrefix: - - is_ - ForbiddenPrefixes: - - is_ - -Style/PreferredHashMethods: - EnforcedStyle: short - -Style/RaiseArgs: - EnforcedStyle: exploded - -Style/RedundantReturn: - AllowMultipleReturnValues: false - -Style/RegexpLiteral: - EnforcedStyle: mixed - AllowInnerSlashes: false +Layout/MultilineOperationIndentation: + Enabled: false -Style/SafeNavigation: - ConvertCodeThatCanStartToReturnNil: false - Enabled: true +Layout/ParameterAlignment: + EnforcedStyle: with_fixed_indentation -Lint/SafeNavigationChain: - Enabled: true +Layout/SpaceAroundMethodCallOperator: + Enabled: false -Style/Semicolon: - AllowAsExpressionSeparator: false +Layout/SpaceBeforeBrackets: + Enabled: false -Style/SignalException: - EnforcedStyle: only_raise +Layout/SpaceInLambdaLiteral: + Enabled: false -Style/SingleLineMethods: - AllowIfMethodIsEmpty: true +Lint/AmbiguousAssignment: + Enabled: false -Layout/SpaceBeforeFirstArg: - AllowForAlignment: true +Lint/AmbiguousBlockAssociation: + Enabled: false -Style/SpecialGlobalVars: - EnforcedStyle: use_english_names +Lint/BooleanSymbol: + Enabled: false -Style/StabbyLambdaParentheses: - EnforcedStyle: require_parentheses +Lint/ConstantDefinitionInBlock: + Enabled: false -Style/StringLiterals: - Enabled: true - EnforcedStyle: double_quotes - ConsistentQuotesInMultiline: false +Lint/DeprecatedConstants: + Enabled: false -Style/StringLiteralsInInterpolation: - Enabled: true - EnforcedStyle: double_quotes +Lint/DisjunctiveAssignmentInConstructor: + Enabled: false -Layout/SpaceAroundBlockParameters: - EnforcedStyleInsidePipes: no_space +Lint/DuplicateBranch: + Enabled: false -Layout/SpaceAroundEqualsInParameterDefault: - EnforcedStyle: space +Lint/DuplicateCaseCondition: + Enabled: false -Layout/SpaceAroundOperators: - AllowForAlignment: true +Lint/DuplicateElsifCondition: + Enabled: false -Layout/SpaceBeforeBlockBraces: - EnforcedStyle: space - EnforcedStyleForEmptyBraces: space +Lint/DuplicateRegexpCharacterClassElement: + Enabled: false -Layout/SpaceInsideBlockBraces: - EnforcedStyle: space - EnforcedStyleForEmptyBraces: no_space - SpaceBeforeBlockParameters: true +Lint/DuplicateRequire: + Enabled: false -Layout/SpaceInsideHashLiteralBraces: - EnforcedStyle: space - EnforcedStyleForEmptyBraces: no_space +Lint/DuplicateRescueException: + Enabled: false -Layout/SpaceInsideStringInterpolation: - EnforcedStyle: no_space +Lint/EmptyBlock: + Enabled: false -Style/SymbolProc: - Enabled: true +Lint/EmptyClass: + Enabled: false -Style/TernaryParentheses: - EnforcedStyle: require_no_parentheses - AllowSafeAssignment: true +Lint/EmptyConditionalBody: + Enabled: false -Layout/TrailingEmptyLines: - EnforcedStyle: final_newline +Lint/EmptyExpression: + Enabled: false -Style/TrivialAccessors: - ExactNameMatch: true - AllowPredicates: true - AllowDSLWriters: false - IgnoreClassMethods: false +Lint/EmptyFile: + Enabled: false -Naming/VariableName: - EnforcedStyle: snake_case +Lint/EmptyWhen: + Enabled: false -Style/WhileUntilModifier: - Enabled: true +Lint/ErbNewArguments: + Enabled: false -Metrics/BlockNesting: - Max: 3 +Lint/FloatComparison: + 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/HashCompareByIdentity: + Enabled: false -Metrics/ParameterLists: - Max: 5 - CountKeywordArgs: false +Lint/IdentityComparison: + Enabled: false -Layout/BlockAlignment: - EnforcedStyleAlignWith: either +Lint/InterpolationCheck: + Enabled: false -Layout/EndAlignment: - EnforcedStyleAlignWith: variable +Lint/LambdaWithoutLiteralBlock: + Enabled: false -Layout/DefEndAlignment: - EnforcedStyleAlignWith: start_of_line +Lint/MissingCopEnableDirective: + Enabled: false -Layout/BeginEndAlignment: - Enabled: true +Lint/MixedRegexpCaptureTypes: + Enabled: false -Lint/InheritException: - EnforcedStyle: runtime_error +Lint/MultipleComparison: + Enabled: false -Lint/UnusedBlockArgument: - IgnoreEmptyBlocks: true - AllowUnusedKeywordArguments: false +Lint/NestedPercentLiteral: + Enabled: false -Lint/UnusedMethodArgument: - AllowUnusedKeywordArguments: false - IgnoreEmptyMethods: true +Lint/NoReturnInBeginEndBlocks: + Enabled: false -Naming/AccessorMethodName: - Enabled: true +Lint/NonDeterministicRequireOrder: + Enabled: false -Layout/ArrayAlignment: - Enabled: true +Lint/NumberedParameterAssignment: + Enabled: false -Style/ArrayJoin: - Enabled: true +Lint/OrAssignmentToConstant: + Enabled: false -Naming/AsciiIdentifiers: - Enabled: true +Lint/OutOfRangeRegexpRef: + Enabled: false -Style/Attr: - Enabled: true +Lint/RaiseException: + Enabled: false -Style/BeginBlock: - Enabled: true +Lint/RedundantDirGlobSort: + Enabled: false -Style/BlockComments: - Enabled: true - -Layout/BlockEndNewline: - Enabled: true - -Style/CaseEquality: - Enabled: true - AllowOnConstant: true - -Style/CharacterLiteral: - Enabled: true +Lint/RedundantRequireStatement: + Enabled: false -Naming/ClassAndModuleCamelCase: - Enabled: true +Lint/RedundantSafeNavigation: + Enabled: false -Style/ClassMethods: - Enabled: true +Lint/RedundantWithIndex: + Enabled: false -Style/ClassVars: - Enabled: true +Lint/RedundantWithObject: + Enabled: false -Layout/ClosingParenthesisIndentation: - Enabled: true +Lint/RegexpAsCondition: + Enabled: false -Style/ColonMethodCall: - Enabled: true +Lint/RescueType: + Enabled: false -Layout/CommentIndentation: - Enabled: true +Lint/ReturnInVoidContext: + Enabled: false -Naming/ConstantName: - Enabled: true +Lint/SafeNavigationConsistency: + Enabled: false -Style/DateTime: - Enabled: true +Lint/SafeNavigationWithEmpty: + Enabled: false -Style/DefWithParentheses: - Enabled: true +Lint/ScriptPermission: + Enabled: false -Style/EachForSimpleLoop: - Enabled: true +Lint/SelfAssignment: + Enabled: false -Style/EachWithObject: - Enabled: true +Lint/SendWithMixinArgument: + Enabled: false -Layout/ElseAlignment: - Enabled: true +Lint/ShadowedArgument: + Enabled: false -Style/EmptyCaseCondition: - Enabled: true +Lint/StructNewOverride: + Enabled: false -Layout/EmptyLines: - Enabled: true +Lint/SymbolConversion: + Enabled: false -Layout/EmptyLinesAroundAccessModifier: - Enabled: true +Lint/ToEnumArguments: + Enabled: false -Layout/EmptyLinesAroundMethodBody: - Enabled: true +Lint/ToJSON: + Enabled: false -Style/EmptyLiteral: - Enabled: true +Lint/TopLevelReturnWithArgument: + Enabled: false -Style/EndBlock: - Enabled: true +Lint/TrailingCommaInAttributeDeclaration: + Enabled: false -Layout/EndOfLine: - Enabled: true +Lint/TripleQuotes: + Enabled: false -Style/EvenOdd: - Enabled: true +Lint/UnexpectedBlockArity: + Enabled: false -Layout/InitialIndentation: - Enabled: true +Lint/UnmodifiedReduceAccumulator: + Enabled: false -Lint/FlipFlop: - Enabled: true +Lint/UnreachableLoop: + Enabled: false -Style/IfInsideElse: - Enabled: true +Lint/UriEscapeUnescape: + Enabled: false -Style/IfUnlessModifierOfIfUnless: - Enabled: true +Lint/UriRegexp: + Enabled: false -Style/IfWithSemicolon: - Enabled: true +Lint/UselessMethodDefinition: + Enabled: false -Style/IdenticalConditionalBranches: - Enabled: true +Lint/UselessTimes: + Enabled: false -Layout/IndentationStyle: - Enabled: true +Metrics/AbcSize: + Enabled: false -Style/InfiniteLoop: - Enabled: true +Metrics/BlockLength: + Enabled: false -Layout/LeadingCommentSpace: - Enabled: true +Metrics/ClassLength: + Enabled: false -Style/LineEndConcatenation: - Enabled: true +Metrics/CyclomaticComplexity: + Enabled: false -Style/MethodCallWithoutArgsParentheses: - Enabled: true +Metrics/MethodLength: + Enabled: false -Lint/MissingSuper: - Enabled: true +Metrics/ModuleLength: + Enabled: false -Style/MissingRespondToMissing: - Enabled: true +Metrics/ParameterLists: + CountKeywordArgs: false -Layout/MultilineBlockLayout: - Enabled: true +Metrics/PerceivedComplexity: + Enabled: false -Style/MultilineIfThen: - Enabled: true +Migration/DepartmentName: + Enabled: false -Style/MultilineMemoization: - Enabled: true +Naming/BlockParameterName: + Enabled: false -Style/MultilineTernaryOperator: - Enabled: true +Naming/HeredocDelimiterCase: + Enabled: false -Style/NegatedIf: - Enabled: true +Naming/HeredocDelimiterNaming: + Enabled: false -Style/NegatedWhile: - Enabled: true +Naming/MemoizedInstanceVariableName: + Enabled: false -Style/NestedModifier: - Enabled: true +Naming/MethodParameterName: + Enabled: false -Style/NestedParenthesizedCalls: - Enabled: true +Naming/PredicateName: + NamePrefix: + - is_ + ForbiddenPrefixes: + - is_ -Style/NestedTernaryOperator: - Enabled: true +Naming/RescuedExceptionsVariableName: + Enabled: false -Style/NilComparison: - Enabled: true +Naming/VariableNumber: + Enabled: false -Style/Not: - Enabled: true +Security/MarshalLoad: + Enabled: false -Style/OneLineConditional: - Enabled: true +Security/YAMLLoad: + Enabled: false -Naming/BinaryOperatorParameterName: - Enabled: true +Style/AccessModifierDeclarations: + Enabled: false -Style/OptionalArguments: - Enabled: true +Style/AccessorGrouping: + Enabled: false -Style/ParallelAssignment: - Enabled: true +Style/Alias: + EnforcedStyle: prefer_alias_method -Style/PerlBackrefs: - Enabled: true +Style/AndOr: + EnforcedStyle: always -Style/Proc: - Enabled: true +Style/ArgumentsForwarding: + Enabled: false -Style/RedundantBegin: - Enabled: true +Style/AsciiComments: + Enabled: false -Style/RedundantException: - Enabled: true +Style/BisectedAttrAccessor: + Enabled: false -Style/RedundantFreeze: - Enabled: true +Style/CaseEquality: + AllowOnConstant: true -Style/RedundantParentheses: - Enabled: true +Style/CaseLikeIf: + Enabled: false -Style/RedundantSelf: - Enabled: true +Style/ClassEqualityComparison: + Enabled: false -Style/RedundantSortBy: - Enabled: true +Style/CollectionCompact: + Enabled: false -Layout/RescueEnsureAlignment: - Enabled: true +Style/ColonMethodDefinition: + Enabled: false -Style/RescueModifier: - Enabled: true +Style/CombinableLoops: + Enabled: false -Style/Sample: - Enabled: true +Style/CommandLiteral: + EnforcedStyle: percent_x -Style/SelfAssignment: - Enabled: true +Style/CommentedKeyword: + Enabled: false -Layout/SpaceAfterColon: +Style/DateTime: Enabled: true -Layout/SpaceAfterComma: - Enabled: true +Style/Dir: + Enabled: false -Layout/SpaceAfterMethodName: - Enabled: true +Style/DocumentDynamicEvalDefinition: + Enabled: false -Layout/SpaceAfterNot: - Enabled: true +Style/Documentation: + Enabled: false -Layout/SpaceAfterSemicolon: - Enabled: true +Style/DoubleCopDisableDirective: + Enabled: false -Layout/SpaceBeforeComma: - Enabled: true +Style/DoubleNegation: + Enabled: false -Layout/SpaceBeforeComment: - Enabled: true +Style/EmptyBlockParameter: + Enabled: false -Layout/SpaceBeforeSemicolon: - Enabled: true +Style/EmptyLambdaParameter: + Enabled: false -Layout/SpaceAroundKeyword: - Enabled: true +Style/EmptyMethod: + Enabled: false -Layout/SpaceInsideArrayPercentLiteral: - Enabled: true +Style/Encoding: + Enabled: false -Layout/SpaceInsidePercentLiteralDelimiters: - Enabled: true +Style/EndlessMethod: + Enabled: false -Layout/SpaceInsideArrayLiteralBrackets: - Enabled: true +Style/EvalWithLocation: + Enabled: false -Layout/SpaceInsideParens: - Enabled: true +Style/ExpandPathArguments: + Enabled: false -Layout/SpaceInsideRangeLiteral: - Enabled: true +Style/ExplicitBlockArgument: + Enabled: false -Style/SymbolLiteral: - Enabled: true +Style/ExponentialNotation: + Enabled: false -Layout/TrailingWhitespace: - Enabled: true +Style/FloatDivision: + Enabled: false -Style/UnlessElse: - Enabled: true +Style/FormatStringToken: + Enabled: false -Style/RedundantCapitalW: - 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.' -Style/RedundantInterpolation: - Enabled: true +Style/GlobalStdStream: + Enabled: false -Style/RedundantPercentQ: - Enabled: true +Style/GuardClause: + Enabled: false -Style/VariableInterpolation: - Enabled: true +Style/HashAsLastArrayItem: + Enabled: false -Style/WhenThen: - Enabled: true +Style/HashConversion: + Enabled: false -Style/WhileUntilDo: - Enabled: true +Style/HashEachMethods: + Enabled: false -Style/ZeroLengthPredicate: - Enabled: true +Style/HashExcept: + Enabled: false -Layout/HeredocIndentation: - Enabled: true +Style/HashLikeCase: + Enabled: false -Lint/AmbiguousOperator: - Enabled: true +Style/HashTransformKeys: + Enabled: false -Lint/AmbiguousRegexpLiteral: - Enabled: true +Style/HashTransformValues: + Enabled: false -Lint/CircularArgumentReference: - Enabled: true +Style/IfUnlessModifier: + Enabled: false -Layout/ConditionPosition: - Enabled: true +Style/IfWithBooleanLiteralBranches: + Enabled: false -Lint/Debugger: - Enabled: true +Style/InverseMethods: + Enabled: false -Lint/DeprecatedClassMethods: - Enabled: true +Style/KeywordParametersOrder: + Enabled: false -Lint/DuplicateMethods: - Enabled: true +Style/Lambda: + Enabled: false -Lint/DuplicateHashKey: +Style/MethodCallWithArgsParentheses: Enabled: true + IgnoredMethods: + - require + - require_relative + - require_dependency + - yield + - raise + - puts + Exclude: + - "/**/Gemfile" -Lint/EachWithObjectArgument: - Enabled: true +Style/MinMax: + Enabled: false -Lint/ElseLayout: - Enabled: true +Style/MixinGrouping: + Enabled: false -Lint/EmptyEnsure: - Enabled: true +Style/MixinUsage: + Enabled: false -Lint/EmptyInterpolation: - Enabled: true +Style/ModuleFunction: + EnforcedStyle: extend_self -Lint/EnsureReturn: - Enabled: true +Style/MultilineBlockChain: + Enabled: false -Lint/FloatOutOfRange: - Enabled: true +Style/MultilineIfModifier: + Enabled: false -Lint/FormatParameterMismatch: - Enabled: true +Style/MultilineWhenThen: + Enabled: false -Lint/SuppressedException: - AllowComments: true +Style/MultipleComparison: + Enabled: false -Lint/ImplicitStringConcatenation: - Enabled: true +Style/MutableConstant: + Enabled: false -Lint/IneffectiveAccessModifier: - Enabled: true +Style/NegatedIfElseCondition: + Enabled: false -Lint/LiteralAsCondition: - Enabled: true +Style/NegatedUnless: + Enabled: false -Lint/LiteralInInterpolation: - Enabled: true +Style/NilLambda: + Enabled: false -Lint/Loop: - Enabled: true +Style/NumericLiteralPrefix: + EnforcedOctalStyle: zero_only -Lint/NestedMethodDefinition: - Enabled: true +Style/NumericLiterals: + Enabled: false -Lint/NextWithoutAccumulator: - Enabled: true +Style/NumericPredicate: + Enabled: false -Lint/NonLocalExitFromIterator: - Enabled: true +Style/OptionalBooleanParameter: + Enabled: false -Lint/ParenthesesAsGroupedExpression: - Enabled: true +Style/OrAssignment: + Enabled: false -Lint/PercentStringArray: - Enabled: true +Style/PercentLiteralDelimiters: + Enabled: false -Lint/PercentSymbolArray: - Enabled: true +Style/RandomWithOffset: + Enabled: false -Lint/RandOne: - Enabled: true +Style/RedundantArgument: + Enabled: false -Lint/RequireParentheses: - Enabled: true +Style/RedundantAssignment: + Enabled: false -Lint/RescueException: - Enabled: true +Style/RedundantCondition: + Enabled: false -Lint/ShadowedException: - Enabled: true +Style/RedundantConditional: + Enabled: false -Lint/ShadowingOuterLocalVariable: - Enabled: true +Style/RedundantFetchBlock: + Enabled: false -Lint/RedundantStringCoercion: - Enabled: true +Style/RedundantFileExtensionInRequire: + Enabled: false -Lint/UnderscorePrefixedVariableName: - Enabled: true +Style/RedundantRegexpCharacterClass: + Enabled: false -Lint/UnifiedInteger: - Enabled: true +Style/RedundantRegexpEscape: + Enabled: false -Lint/RedundantCopDisableDirective: - Enabled: true +Style/RedundantSelfAssignment: + Enabled: false -Lint/RedundantCopEnableDirective: - Enabled: true +Style/RedundantSort: + Enabled: false -Lint/RedundantSplatExpansion: - Enabled: true +Style/RegexpLiteral: + EnforcedStyle: mixed -Lint/UnreachableCode: - Enabled: true +Style/RescueStandardError: + Enabled: false -Lint/UselessAccessModifier: - ContextCreatingMethods: [] +Style/SingleArgumentDig: + Enabled: false -Lint/UselessAssignment: - Enabled: true +Style/SlicingWithRange: + Enabled: false -Lint/BinaryOperatorWithIdenticalOperands: - Enabled: true +Style/SoleNestedConditional: + Enabled: false -Lint/UselessElseWithoutRescue: - Enabled: true +Style/StderrPuts: + Enabled: false -Lint/UselessSetterCall: - Enabled: true +Style/StringChars: + Enabled: false -Lint/Void: - Enabled: true +Style/StringConcatenation: + Enabled: false -Security/Eval: - Enabled: true +Style/StringLiterals: + EnforcedStyle: double_quotes -Security/JSONLoad: - Enabled: true +Style/StringLiteralsInInterpolation: + EnforcedStyle: double_quotes -Security/Open: - Enabled: true +Style/StructInheritance: + Enabled: false -Lint/BigDecimalNew: - Enabled: true +Style/SwapValues: + Enabled: false -Style/Strip: - Enabled: true +Style/SymbolArray: + Enabled: false -Style/TrailingBodyOnClass: - Enabled: true +Style/TrailingBodyOnMethodDefinition: + Enabled: false -Style/TrailingBodyOnModule: - Enabled: true +Style/TrailingCommaInArguments: + Enabled: false Style/TrailingCommaInArrayLiteral: EnforcedStyleForMultiline: comma @@ -763,18 +645,17 @@ Style/TrailingCommaInArrayLiteral: Style/TrailingCommaInHashLiteral: EnforcedStyleForMultiline: comma -Layout/SpaceInsideReferenceBrackets: - EnforcedStyle: no_space - EnforcedStyleForEmptyBrackets: no_space +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: + Enabled: false -Lint/Syntax: - Enabled: true +Style/YodaCondition: + Enabled: false diff --git a/test/fixtures/full_config.yml b/test/fixtures/full_config.yml index 22216823..9abeeb40 100644 --- a/test/fixtures/full_config.yml +++ b/test/fixtures/full_config.yml @@ -70,7 +70,7 @@ AllCops: ExtraDetails: false StyleGuideCopsOnly: false EnabledByDefault: false - DisabledByDefault: true + DisabledByDefault: false NewCops: pending UseCache: true MaxFilesInCache: 20000 @@ -89,7 +89,6 @@ AllCops: - sequel rubocop-rake: - rake - Enabled: true Bundler/DuplicatedGem: Description: Checks for duplicate gem entries in Gemfile. Enabled: false @@ -3593,7 +3592,6 @@ Style/ZeroLengthPredicate: VersionAdded: '0.37' VersionChanged: '0.39' inherit_mode: - Enabled: true merge: - Exclude - Include