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/ArrayIntersect: Enabled: true 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 AllowOnSelfClass: false AutoCorrect: true Style/CaseLikeIf: Enabled: true MinBranchesCount: 3 AutoCorrect: true Style/CharacterLiteral: Enabled: true Style/ClassAndModuleChildren: Enabled: false Style/ClassCheck: Enabled: true EnforcedStyle: is_a? Style/ClassEqualityComparison: Enabled: true AllowedMethods: - == - equal? - eql? Style/ClassMethods: Enabled: true Style/ClassMethodsDefinitions: Enabled: false EnforcedStyle: self_class Style/ClassVars: Enabled: true Style/ConcatArrayLiterals: Enabled: false # NOTE: it is totally unsafe Style/CollectionCompact: Enabled: true Style/CollectionMethods: Enabled: false Style/ColonMethodCall: Enabled: true Style/ColonMethodDefinition: Enabled: true Style/ComparableClamp: 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/DataInheritance: Enabled: true Style/DateTime: Enabled: false AllowCoercion: false AutoCorrect: false Style/DefWithParentheses: Enabled: true Style/Dir: Enabled: true Style/DirEmpty: 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/EmptyHeredoc: Enabled: true Style/EmptyBlockParameter: Enabled: true Style/EmptyCaseCondition: Enabled: false Style/EmptyElse: Enabled: true EnforcedStyle: empty AllowComments: true 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/EnvHome: Enabled: true Style/EvalWithLocation: Enabled: true AutoCorrect: true Style/EvenOdd: Enabled: true Style/ExactRegexpMatch: Enabled: true Style/ExpandPathArguments: Enabled: true Style/ExponentialNotation: Enabled: true EnforcedStyle: scientific Style/ExplicitBlockArgument: Enabled: true Style/FetchEnvVar: Enabled: true Style/FileEmpty: Enabled: true Style/FileRead: Enabled: false Style/FileWrite: Enabled: false 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 AllowedMethods: [] Style/FrozenStringLiteralComment: Enabled: true EnforcedStyle: always Style/GlobalVars: Enabled: true AllowedVariables: [] Style/GlobalStdStream: Enabled: false Style/GuardClause: Enabled: false AutoCorrect: true MinBodyLength: 1 AllowConsecutiveConditionals: false 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 EnforcedShorthandSyntax: either 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/InvertibleUnlessCondition: 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/MagicCommentFormat: Enabled: true EnforcedStyle: snake_case DirectiveCapitalization: lowercase ValueCapitalization: ~ Style/MapToSet: Enabled: false # NOTE: it is totally unsafe Style/MapCompactWithConditionalBlock: Enabled: true Style/MapToHash: 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/MinMaxComparison: Enabled: true Style/MissingElse: Enabled: false AutoCorrect: true 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/NestedFileDirname: Enabled: false # NOTE: switch to "true" if you work with Ruby 3.1 or higher 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: true Strict: false AllowedNumbers: [] AllowedPatterns: [] Style/NumericPredicate: Enabled: false # strongly situative cop EnforcedStyle: comparison AutoCorrect: true AllowedMethods: [] Style/ObjectThen: Enabled: true EnforcedStyle: yield_self Style/OneLineConditional: Enabled: true Style/OpenStructUse: Enabled: true Style/OperatorMethodCall: 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/RedundantLineContinuation: Enabled: true Style/RedundantHeredocDelimiterQuotes: Enabled: true Style/RedundantConstantBase: Enabled: true Style/RequireOrder: Enabled: false Style/RedundantEach: Enabled: true Style/RedundantStringEscape: 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/RedundantInitialize: Enabled: true AllowComments: 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 MaxChainLength: 3 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 RequireEnglish: true EnforcedStyle: use_english_names Style/StaticClass: Enabled: true AutoCorrect: 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: Enabled: true AllowMethodsWithArguments: true AllowComments: false AllowedMethods: - define_method - mail 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/RedundantDoubleSplatHashBraces: Enabled: true 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/YodaExpression: Enabled: false Style/ZeroLengthPredicate: Enabled: true Style/QuotedSymbols: Enabled: true EnforcedStyle: same_as_string_literals