lib/reevoocop.yml in reevoocop-0.0.6 vs lib/reevoocop.yml in reevoocop-0.0.7

- old
+ new

@@ -1,27 +1,61 @@ 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 +Style/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 +# Style/EmptyLinesAroundBlockBody: - Enabled: false + Enabled: true Style/EmptyLinesAroundClassBody: Enabled: false Style/EmptyLinesAroundMethodBody: - Enabled: false + Enabled: true Style/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: TrailingComma: Enabled: true EnforcedStyleForMultiline: comma SupportedStyles: - comma