# Documentation # https://github.com/bbatsov/rubocop/blob/master/config/default.yml # http://rubocop.readthedocs.io/en/latest require: - rubocop-rails - rubocop-rspec - rubocop-performance AllCops: TargetRubyVersion: 3.0 Bundler/OrderedGems: Enabled: false Gemspec/DateAssignment: Enabled: true Layout/CaseIndentation: Enabled: false Layout/CommentIndentation: Enabled: false Layout/EmptyLinesAroundBlockBody: Enabled: false Layout/EmptyLinesAroundClassBody: Enabled: false Layout/EmptyLinesAroundModuleBody: Enabled: false Layout/ExtraSpacing: Enabled: false AllowForAlignment: true Layout/FirstArgumentIndentation: Enabled: false Layout/FirstArrayElementIndentation: Enabled: false Layout/FirstHashElementIndentation: Enabled: false Layout/HashAlignment: Enabled: false Layout/LeadingCommentSpace: Enabled: false Layout/LineLength: Enabled: false Layout/MultilineBlockLayout: Enabled: false Layout/MultilineMethodCallBraceLayout: Enabled: false Layout/MultilineMethodCallIndentation: Enabled: false Layout/MultilineOperationIndentation: Enabled: false Layout/ParameterAlignment: Enabled: false Layout/SpaceAroundOperators: Enabled: false Layout/SpaceBeforeBrackets: Enabled: true Layout/SpaceInLambdaLiteral: Enabled: false Layout/TrailingWhitespace: Enabled: false Lint/AmbiguousAssignment: Enabled: true Lint/AmbiguousBlockAssociation: Enabled: false Lint/DeprecatedConstants: Enabled: true Lint/DuplicateBranch: Enabled: true Lint/DuplicateRegexpCharacterClassElement: Enabled: true Lint/EmptyBlock: Enabled: true Lint/EmptyClass: Enabled: true Lint/LambdaWithoutLiteralBlock: Enabled: true Lint/NoReturnInBeginEndBlocks: Enabled: true Lint/NumberedParameterAssignment: Enabled: true Lint/OrAssignmentToConstant: Enabled: true Lint/RedundantDirGlobSort: Enabled: true Lint/SymbolConversion: Enabled: true Lint/ToEnumArguments: Enabled: true Lint/TripleQuotes: Enabled: true Lint/UnexpectedBlockArity: Enabled: true Lint/UnmodifiedReduceAccumulator: Enabled: true Metrics/AbcSize: Max: 240 Metrics/BlockLength: Max: 90 Metrics/BlockNesting: Max: 4 Metrics/ClassLength: CountComments: false Max: 600 Metrics/CyclomaticComplexity: Enabled: false Metrics/MethodLength: CountComments: false Max: 120 Metrics/PerceivedComplexity: Enabled: false Naming/RescuedExceptionsVariableName: Enabled: false Performance/AncestorsInclude: Enabled: true Performance/BigDecimalWithNumericArgument: Enabled: true Performance/BlockGivenWithExplicitBlock: Enabled: true Performance/CollectionLiteralInLoop: Enabled: true Performance/ConstantRegexp: Enabled: true Performance/MapCompact: Enabled: true Performance/MethodObjectAsBlock: Enabled: true Performance/RedundantEqualityComparisonBlock: Enabled: true Performance/RedundantSortBlock: Enabled: true Performance/RedundantSplitRegexpArgument: Enabled: true Performance/RedundantStringChars: Enabled: true Performance/ReverseFirst: Enabled: true Performance/SortReverse: Enabled: true Performance/Squeeze: Enabled: true Performance/StringInclude: Enabled: true Performance/Sum: Enabled: true Rails/ActiveRecordCallbacksOrder: Enabled: true Rails/AfterCommitOverride: Enabled: true Rails/AttributeDefaultBlockValue: Enabled: true Rails/DynamicFindBy: Enabled: false Rails/FindBy: Enabled: false Rails/FindById: Enabled: true Rails/HasManyOrHasOneDependent: Enabled: false Rails/Inquiry: Enabled: true Rails/InverseOf: Enabled: false Rails/MailerName: Enabled: true Rails/MatchRoute: Enabled: true Rails/NegateInclude: Enabled: true Rails/Pluck: Enabled: true Rails/OutputSafety: Enabled: false Rails/PluckInWhere: Enabled: true Rails/RenderInline: Enabled: true Rails/RenderPlainText: Enabled: true Rails/ShortI18n: Enabled: true Rails/SkipsModelValidations: Enabled: false Rails/SquishedSQLHeredocs: Enabled: true Rails/UnknownEnv: Enabled: false Rails/Validation: Enabled: false Rails/WhereEquals: Enabled: true Rails/WhereExists: Enabled: true Rails/WhereNot: Enabled: true RSpec/BeforeAfterAll: Enabled: false RSpec/ContextWording: Enabled: false RSpec/DescribedClass: Enabled: false RSpec/ExampleLength: Max: 20 RSpec/Capybara: Enabled: false RSpec/ImplicitExpect: Enabled: false RSpec/ImplicitSubject: Enabled: false RSpec/InstanceVariable: Enabled: false RSpec/LeadingSubject: Enabled: false RSpec/MultipleExpectations: Max: 10 RSpec/MultipleMemoizedHelpers: Max: 8 RSpec/NestedGroups: Max: 4 Style/ArgumentsForwarding: Enabled: true Style/AsciiComments: Enabled: false Style/BlockDelimiters: Enabled: false Style/ClassAndModuleChildren: Enabled: false Style/CollectionCompact: Enabled: true Style/ColonMethodCall: Enabled: false Style/CommandLiteral: Enabled: false Style/Documentation: Enabled: false Style/DocumentDynamicEvalDefinition: Enabled: true Style/DoubleNegation: Enabled: false Style/EndlessMethod: Enabled: true Style/GlobalVars: Enabled: false Style/HashConversion: Enabled: true Style/HashEachMethods: Enabled: true Style/HashExcept: Enabled: true Style/HashTransformKeys: Enabled: true Style/HashTransformValues: Enabled: true Style/IfUnlessModifier: Enabled: false Style/IfWithBooleanLiteralBranches: Enabled: true Style/Lambda: Enabled: false Style/MultilineIfModifier: Enabled: false Style/NegatedIfElseCondition: Enabled: true Style/NilLambda: Enabled: true Style/NumericPredicate: Enabled: false Style/RedundantReturn: Enabled: false AllowMultipleReturnValues: true Style/RedundantArgument: Enabled: true Style/RedundantSelf: Enabled: false Style/RegexpLiteral: Enabled: false Style/RescueModifier: Enabled: false Style/StringChars: Enabled: true Style/SwapValues: Enabled: true Style/SymbolArray: Enabled: false