config/chefstyle.yml in chefstyle-0.3.0 vs config/chefstyle.yml in chefstyle-0.3.1

- old
+ new

@@ -1,6 +1,5 @@ - # # Lint # Lint/AmbiguousOperator: @@ -79,33 +78,45 @@ # # Performance # +Performance/CaseCmp: + Enabled: true Performance/CaseWhenSplat: Enabled: true +Performance/Detect: + Enabled: true Performance/FixedSize: Enabled: true Performance/FlatMap: Enabled: true +Performance/RangeInclude: + Enabled: true +Performance/RedundantBlockCall: + Enabled: true +Performance/RedundantMatch: + Enabled: true +Performance/RedundantMerge: + Enabled: true Performance/ReverseEach: Enabled: true Performance/Sample: Enabled: true Performance/Size: Enabled: true +Performance/StringReplacement: + Enabled: true # # Rails # Rails/ActionFilter: Enabled: true Rails/Date: Enabled: true -Rails/DefaultScope: - Enabled: true Rails/Delegate: Enabled: true Rails/FindBy: Enabled: true Rails/FindEach: @@ -155,10 +166,12 @@ # Style # Style/AlignHash: Enabled: true +Style/AndOr: + Enabled: true Style/ArrayJoin: Enabled: true Style/AsciiIdentifiers: Enabled: true Style/Attr: @@ -263,11 +276,11 @@ Enabled: true Style/SpaceBeforeBlockBraces: Enabled: true Style/SpaceBeforeFirstArg: Enabled: true -Style/SpaceBeforeModifierKeyword: +Style/SpaceAroundKeyword: Enabled: true Style/SpaceInsideBlockBraces: Enabled: true Style/SpaceInsideHashLiteralBraces: Enabled: true @@ -283,12 +296,14 @@ Enabled: true Style/Tab: Enabled: true Style/TrailingBlankLines: Enabled: true +Style/TrailingCommaInArguments: + Enabled: true # rubocop's default gets this completely backwards -Style/TrailingComma: +Style/TrailingCommaInLiteral: Enabled: true EnforcedStyleForMultiline: comma Style/TrailingUnderscoreVariable: Enabled: true Style/TrailingWhitespace: @@ -312,10 +327,10 @@ # This is a cop that we /should/ have enabled, but tactically we can't really enable. Style/Documentation: Enabled: false # this makes whitespace formatting of DSL code impossible -Style/SingleSpaceBeforeFirstArg: +Style/SpaceBeforeFirstArg: Enabled: false # whitespace in expressions is useful to enhance readability Style/SpaceInsideBrackets: Enabled: false