Style/AccessorGrouping: Enabled: true EnforcedStyle: separated Style/AccessModifierDeclarations: Enabled: true EnforcedStyle: group AllowModifiersOnSymbols: true Style/Alias: Enabled: true EnforcedStyle: prefer_alias_method Style/AndOr: Enabled: false EnforcedStyle: always Style/ArrayCoercion: Enabled: true Style/ArgumentsForwarding: Enabled: false AllowOnlyRestArgument: true Style/ArrayJoin: Enabled: true Style/AsciiComments: Enabled: false AllowedChars: [] Style/Attr: Enabled: true Style/AutoResourceCleanup: Enabled: false Style/BarePercentLiterals: Enabled: true EnforcedStyle: bare_percent Style/BeginBlock: Enabled: true Style/BisectedAttrAccessor: Enabled: true Style/BlockComments: Enabled: true Style/BlockDelimiters: Enabled: true EnforcedStyle: line_count_based AllowBracesOnProceduralOneLiners: false BracesRequiredMethods: ['sig'] Style/CaseEquality: Enabled: true AllowOnConstant: false AutoCorrect: true Style/CaseLikeIf: Enabled: true AutoCorrect: true Style/CharacterLiteral: Enabled: true Style/ClassAndModuleChildren: Enabled: false Style/ClassCheck: Enabled: true EnforcedStyle: is_a? Style/ClassEqualityComparison: Enabled: true IgnoredMethods: - == - equal? - eql? Style/ClassMethods: Enabled: true Style/ClassMethodsDefinitions: Enabled: false EnforcedStyle: self_class Style/ClassVars: Enabled: true Style/CollectionCompact: Enabled: true Style/CollectionMethods: Enabled: false Style/ColonMethodCall: Enabled: true Style/ColonMethodDefinition: Enabled: true Style/CombinableLoops: Enabled: false Style/CommandLiteral: Enabled: false Style/CommentAnnotation: Enabled: false Style/CommentedKeyword: Enabled: false AutoCorrect: true Style/ConditionalAssignment: Enabled: false Style/ConstantVisibility: Enabled: false Style/Copyright: Enabled: false Style/DateTime: Enabled: false AllowCoercion: false AutoCorrect: false Style/DefWithParentheses: Enabled: true Style/Dir: Enabled: true Style/DisableCopsWithinSourceCodeDirective: Enabled: false Style/DocumentDynamicEvalDefinition: Enabled: false Style/Documentation: Enabled: false Style/DocumentationMethod: Enabled: false Style/DoubleNegation: Enabled: false AutoCorrect: true EnforcedStyle: allowed_in_returns Style/EachForSimpleLoop: Enabled: false Style/EachWithObject: Enabled: true Style/EmptyBlockParameter: Enabled: true Style/EmptyCaseCondition: Enabled: false Style/EmptyElse: Enabled: true EnforcedStyle: empty Style/EmptyLambdaParameter: Enabled: true Style/EmptyLiteral: Enabled: true Style/EmptyMethod: Enabled: true EnforcedStyle: compact Style/EndlessMethod: Enabled: true EnforcedStyle: allow_single_line Style/Encoding: Enabled: false Style/EndBlock: Enabled: true AutoCorrect: true Style/EvalWithLocation: Enabled: true AutoCorrect: true Style/EvenOdd: Enabled: true Style/ExpandPathArguments: Enabled: true Style/ExponentialNotation: Enabled: true EnforcedStyle: scientific Style/ExplicitBlockArgument: Enabled: true Style/FloatDivision: Enabled: false Style/For: Enabled: true EnforcedStyle: each AutoCorrect: true Style/FormatString: Enabled: true EnforcedStyle: format Style/FormatStringToken: Enabled: true MaxUnannotatedPlaceholdersAllowed: 1 EnforcedStyle: annotated IgnoredMethods: [] Style/FrozenStringLiteralComment: Enabled: true EnforcedStyle: always Style/GlobalVars: Enabled: true AllowedVariables: [] Style/GlobalStdStream: Enabled: false Style/GuardClause: Enabled: false MinBodyLength: 1 Style/HashAsLastArrayItem: Enabled: true EnforcedStyle: braces AutoCorrect: true Style/HashConversion: AllowSplatArgument: true Enabled: false Style/HashExcept: Enabled: true Style/HashLikeCase: Enabled: false MinBranchesCount: 4 Style/HashEachMethods: Enabled: true Style/HashSyntax: Enabled: true EnforcedStyle: ruby19 UseHashRocketsWithSymbolValues: false PreferHashRocketsForNonAlnumEndingSymbols: false Style/HashTransformKeys: Enabled: false Style/HashTransformValues: Enabled: false Style/IdenticalConditionalBranches: Enabled: true Style/IfWithBooleanLiteralBranches: Enabled: true Style/IfInsideElse: Enabled: true AllowIfModifier: true AutoCorrect: true Style/IfUnlessModifier: Enabled: false Style/IfUnlessModifierOfIfUnless: Enabled: true AutoCorrect: true Style/IfWithSemicolon: Enabled: true AutoCorrect: true Style/ImplicitRuntimeError: Enabled: false Style/InfiniteLoop: Enabled: true Style/InlineComment: Enabled: false Style/InverseMethods: Enabled: true Style/IpAddresses: Enabled: false Style/KeywordParametersOrder: Enabled: false Style/Lambda: Enabled: true EnforcedStyle: line_count_dependent Style/LambdaCall: Enabled: false Style/LineEndConcatenation: Enabled: true Style/MethodCallWithArgsParentheses: Enabled: false # NOTE: experimental! EnforcedStyle: require_parentheses IgnoreMacros: true AllowParenthesesInMultilineCall: true AllowParenthesesInChaining: true AllowParenthesesInCamelCaseMethod: true AllowParenthesesInStringInterpolation: true Style/MethodCallWithoutArgsParentheses: Enabled: true Style/MethodCalledOnDoEndBlock: Enabled: false Style/MethodDefParentheses: Enabled: true EnforcedStyle: require_parentheses Style/MinMax: Enabled: true Style/MissingElse: Enabled: false Style/MissingRespondToMissing: Enabled: true Style/MixinGrouping: Enabled: true EnforcedStyle: separated Style/MixinUsage: Enabled: true Style/ModuleFunction: Enabled: false Style/MultilineBlockChain: Enabled: false Style/MultilineIfModifier: Enabled: false Style/MultilineIfThen: Enabled: true Style/MultilineInPatternThen: Enabled: true Style/MultilineMemoization: Enabled: true EnforcedStyle: keyword Style/MultilineMethodSignature: Enabled: false AutoCorrect: true Style/MultilineTernaryOperator: Enabled: false AutoCorrect: true Style/MultilineWhenThen: Enabled: true Style/MultipleComparison: Enabled: false Style/MutableConstant: Enabled: true Style/NegatedIf: Enabled: true EnforcedStyle: both Style/NegatedIfElseCondition: Enabled: false Style/NegatedUnless: Enabled: false EnforcedStyle: both Style/NegatedWhile: Enabled: true Style/NestedModifier: Enabled: true Style/NestedParenthesizedCalls: Enabled: true Style/NestedTernaryOperator: Enabled: true AutoCorrect: true Style/Next: Enabled: true EnforcedStyle: skip_modifier_ifs MinBodyLength: 3 Style/NilComparison: Enabled: true EnforcedStyle: comparison Style/NilLambda: Enabled: false Style/NonNilCheck: Enabled: true IncludeSemanticChanges: false Style/Not: Enabled: true Style/NumberedParameters: Enabled: false Style/NumberedParametersLimit: Max: 1_000_000 Enabled: true Style/NumericLiteralPrefix: Enabled: true EnforcedOctalStyle: zero_with_o Style/NumericLiterals: Enabled: false Style/NumericPredicate: Enabled: false # strongly situative cop EnforcedStyle: comparison AutoCorrect: true IgnoredMethods: [] Style/OneLineConditional: Enabled: true Style/OpenStructUse: Enabled: true Style/OptionHash: Enabled: false Style/OptionalArguments: Enabled: true Style/OptionalBooleanParameter: Enabled: false AllowedMethods: - respond_to_missing? Style/ParallelAssignment: Enabled: false Style/ParenthesesAroundCondition: Enabled: false Style/PercentLiteralDelimiters: Enabled: true Style/PercentQLiterals: Enabled: true EnforcedStyle: lower_case_q Style/PerlBackrefs: Enabled: true Style/PreferredHashMethods: Enabled: true EnforcedStyle: short Style/Proc: Enabled: true Style/RaiseArgs: Enabled: true EnforcedStyle: exploded AllowedCompactTypes: [] Style/RandomWithOffset: Enabled: true Style/RedundantArgument: Enabled: false Style/RedundantAssignment: Enabled: true Style/RedundantBegin: Enabled: true Style/RedundantConditional: Enabled: true Style/RedundantFileExtensionInRequire: Enabled: true Style/RedundantFetchBlock: Enabled: true SafeForConstants: true Style/RedundantRegexpCharacterClass: Enabled: true Style/RedundantRegexpEscape: Enabled: true Style/RedundantException: Enabled: false Style/RedundantFreeze: Enabled: true Style/RedundantParentheses: Enabled: true Style/RedundantReturn: Enabled: true AllowMultipleReturnValues: false Style/RedundantSelf: Enabled: true Style/RedundantSelfAssignment: Enabled: false Style/RedundantSortBy: Enabled: true Style/RegexpLiteral: Enabled: false Style/RescueModifier: Enabled: false Style/RescueStandardError: Enabled: false Style/ReturnNil: Enabled: false Style/RedundantSelfAssignmentBranch: Enabled: false # NOTE: can decrease the code readability Style/SafeNavigation: Enabled: true ConvertCodeThatCanStartToReturnNil: false Style/Sample: Enabled: true Style/SelectByRegexp: Enabled: false Style/SelfAssignment: Enabled: true Style/Semicolon: Enabled: true AllowAsExpressionSeparator: false Style/Send: Enabled: false Style/SignalException: Enabled: true EnforcedStyle: only_raise Style/SingleArgumentDig: Enabled: true Style/SingleLineBlockParams: Enabled: false Style/SingleLineMethods: Enabled: true AllowIfMethodIsEmpty: true Exclude: - spec/**/* Style/SlicingWithRange: Enabled: true Style/SpecialGlobalVars: Enabled: true Style/StaticClass: Enabled: true Style/StabbyLambdaParentheses: Enabled: true EnforcedStyle: require_parentheses Style/StderrPuts: Enabled: true Style/StringConcatenation: Enabled: true Mode: aggressive Style/StringChars: Enabled: true Style/StringHashKeys: Enabled: false Style/StringLiterals: Enabled: true EnforcedStyle: single_quotes ConsistentQuotesInMultiline: true Style/StringLiteralsInInterpolation: Enabled: true EnforcedStyle: single_quotes Style/StringMethods: Enabled: false Style/Strip: Enabled: true Style/StructInheritance: Enabled: true AutoCorrect: true Style/SymbolArray: Enabled: true EnforcedStyle: percent Style/SymbolLiteral: Enabled: true Style/SymbolProc: AllowMethodsWithArguments: true IgnoredMethods: - respond_to - define_method Enabled: true Style/SwapValues: Enabled: true Style/TernaryParentheses: Enabled: true EnforcedStyle: require_parentheses_when_complex AllowSafeAssignment: true Style/TopLevelMethodDefinition: Enabled: true Style/TrailingBodyOnClass: Enabled: true Style/TrailingBodyOnMethodDefinition: Enabled: true Style/TrailingBodyOnModule: Enabled: true Style/TrailingCommaInArguments: Enabled: true EnforcedStyleForMultiline: no_comma Style/TrailingCommaInArrayLiteral: Enabled: true EnforcedStyleForMultiline: no_comma Style/TrailingCommaInBlockArgs: Enabled: false Style/TrailingCommaInHashLiteral: Enabled: true EnforcedStyleForMultiline: no_comma AutoCorrect: true Style/TrailingMethodEndStatement: Enabled: true Style/TrailingUnderscoreVariable: Enabled: true AllowNamedUnderscoreVariables: true Style/TrivialAccessors: Enabled: false Style/UnlessElse: Enabled: false Style/UnlessLogicalOperators: EnforcedStyle: forbid_mixed_logical_operators Enabled: false Style/RedundantCapitalW: Enabled: true Style/RedundantCondition: Enabled: true Style/RedundantInterpolation: Enabled: true Style/RedundantPercentQ: Enabled: true Style/RedundantSort: Enabled: true Style/SoleNestedConditional: Enabled: true AutoCorrect: true AllowModifier: true Style/UnpackFirst: Enabled: true Style/VariableInterpolation: Enabled: true Style/WhenThen: Enabled: true Style/WhileUntilDo: Enabled: true Style/WhileUntilModifier: Enabled: false Style/WordArray: Enabled: true EnforcedStyle: percent MinSize: 2 Style/YodaCondition: Enabled: false EnforcedStyle: forbid_for_all_comparison_operators Style/ZeroLengthPredicate: Enabled: true Style/QuotedSymbols: Enabled: true EnforcedStyle: same_as_string_literals