Skip to content

Commit

Permalink
[Bundle] Update RuboCop
Browse files Browse the repository at this point in the history
  • Loading branch information
segiddins committed Feb 25, 2016
1 parent 18b57d5 commit 686ce71
Show file tree
Hide file tree
Showing 6 changed files with 320 additions and 184 deletions.
34 changes: 29 additions & 5 deletions .rubocop-bundler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ inherit_from:
- .rubocop_todo.yml

AllCops:
TargetRubyVersion: 1.9
Exclude:
- tmp/**/*
- lib/bundler/vendor/**/*
Expand All @@ -15,6 +16,7 @@ Lint/AssignmentInCondition:

Lint/EndAlignment:
AlignWith: variable
AutoCorrect: true

Lint/UnusedMethodArgument:
Enabled: false
Expand All @@ -24,12 +26,27 @@ Lint/UnusedMethodArgument:
Style/AccessModifierIndentation:
EnforcedStyle: outdent

Style/Alias:
EnforcedStyle: prefer_alias_method

Style/AlignParameters:
EnforcedStyle: with_fixed_indentation

Style/FrozenStringLiteralComment:
EnforcedStyle: always

Style/MultilineBlockChain:
Enabled: false

Style/MultilineOperationIndentation:
EnforcedStyle: indented

Style/PerlBackrefs:
Enabled: false

Style/SingleLineBlockParams:
Enabled: false

Style/SpaceInsideBlockBraces:
SpaceBeforeBlockParameters: false

Expand All @@ -48,9 +65,16 @@ Style/StringLiteralsInInterpolation:

# Having these make it easier to *not* forget to add one when adding a new
# value and you can simply copy the previous line.
Style/TrailingComma:
Style/TrailingCommaInLiteral:
EnforcedStyleForMultiline: comma

Style/TrailingUnderscoreVariable:
Enabled: false

# `String.new` is preferred style with enabled frozen string literal
Style/EmptyLiteral:
Enabled: false

# 1.8.7 support

Style/HashSyntax:
Expand All @@ -68,7 +92,10 @@ Style/EachWithObject:
Style/SpecialGlobalVars:
Enabled: false

Style/TrailingComma:
Style/TrailingCommaInArguments:
Enabled: false

Performance/FlatMap:
Enabled: false

# Metrics
Expand All @@ -91,6 +118,3 @@ Metrics/AbcSize:

Metrics/CyclomaticComplexity:
Enabled: false

Metrics/PerceivedComplexity:
Enabled: false
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ AllCops:
- bin/**/*
- vendor/**/*
DisplayCopNames: true
TargetRubyVersion: 2.3
Loading

0 comments on commit 686ce71

Please sign in to comment.