LineLength: Max: 120 # See https://github.com/reevoo/reevoocop/pull/13 # * Other metrics like complexity should discorage complexity # * Sometimes it is less clear to squeese things on too few lines Metrics/MethodLength: Enabled: false Documentation: Enabled: false AndOr: Enabled: false # Allow use of empty lines to visually group code into 'paragraphs' EmptyLines: Enabled: false # Keeping parameters in a line makes them easier to read, but in long lines the # parameters look ridiculous if using the "with_first_parameter" option, making # it more difficult to read the code Layout/AlignParameters: EnforcedStyle: with_fixed_indentation # Blank lines are useful in separating methods, specs, etc. from one another, # and improves the aesthetics of the code. Consequently, we've enabled # EmptyLines around blocks and methods. This is less desirable for Classes and # Modules where the definitions may be usefully put on consecutive lines, e.g.: # # module API # module Auth # class Person # ... etc # Layout/EmptyLinesAroundBlockBody: Enabled: true Layout/EmptyLinesAroundClassBody: Enabled: false Layout/EmptyLinesAroundMethodBody: Enabled: true Layout/EmptyLinesAroundModuleBody: Enabled: false # See https://github.com/reevoo/reevoocop/issues/10 Style/ModuleFunction: Enabled: false # See more here: https://viget.com/extend/just-use-double-quoted-ruby-strings Style/StringLiterals: EnforcedStyle: double_quotes Style/StringLiteralsInInterpolation: EnforcedStyle: double_quotes # See https://github.com/reevoo/reevoocop/issues/1 # * For cleaner git diffs # * Simpler :sort: Style/TrailingCommaInLiteral: Enabled: true EnforcedStyleForMultiline: consistent_comma Style/TrailingCommaInArguments: Enabled: true EnforcedStyleForMultiline: comma # See https://github.com/reevoo/reevoocop/issues/18 # We are fine with using double negation to to force # something truthy or falsy to true or false Style/DoubleNegation: Enabled: false # See examples/block_call.rb Performance/RedundantBlockCall: Enabled: false Layout/EmptyLineAfterMagicComment: Enabled: false Style/SignalException: EnforcedStyle: semantic Style/ParallelAssignment: Enabled: false Metrics/BlockLength: Enabled: false Style/NestedParenthesizedCalls: Enabled: false Style/PercentLiteralDelimiters: Enabled: false Layout/ClosingParenthesisIndentation: Enabled: false Layout/FirstParameterIndentation: Enabled: false Style/GuardClause: Enabled: false Style/RegexpLiteral: Enabled: false Style/MethodMissing: Enabled: false Style/IfInsideElse: Enabled: false Style/NumericPredicate: Enabled: false Layout/IndentHeredoc: Enabled: false Style/StructInheritance: Enabled: false Style/MultipleComparison: Enabled: false Metrics/ModuleLength: Enabled: false Style/IdenticalConditionalBranches: Enabled: false Style/VariableName: Enabled: false AllCops: Exclude: - !ruby/regexp /node_modules/ - !ruby/regexp /db\/schema\.rb/ - 'vendor/bundle/**/*'