Skip to content

Commit

Permalink
Remove duplicate settings already configured by default
Browse files Browse the repository at this point in the history
  • Loading branch information
r7kamura committed Jan 10, 2024
1 parent 1c1962b commit ae3082f
Showing 1 changed file with 0 additions and 50 deletions.
50 changes: 0 additions & 50 deletions rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,27 +48,11 @@ Layout/EmptyLinesAroundModuleBody:
Layout/EndAlignment:
Enabled: true
EnforcedStyleAlignWith: variable
AutoCorrect: true

# Method definitions after `private` or `protected` isolated calls need one
# extra level of indentation.
#
# We break this rule in context, though, e.g. for private-only concerns,
# so we leave it disabled.
Layout/IndentationConsistency:
Enabled: false
EnforcedStyle: indented_internal_methods

# Detect hard tabs, no hard tabs.
Layout/IndentationStyle:
Enabled: true

# Two spaces, no tabs (for indentation).
#
# Doesn't behave properly with private-only concerns, so it's disabled.
Layout/IndentationWidth:
Enabled: false

Layout/LeadingCommentSpace:
Enabled: true

Expand Down Expand Up @@ -103,7 +87,6 @@ Layout/SpaceInLambdaLiteral:
Layout/SpaceInsideArrayLiteralBrackets:
Enabled: true
EnforcedStyle: space
EnforcedStyleForEmptyBrackets: no_space

# Use `%w[ a b ]` not `%w[ a b ]`.
Layout/SpaceInsideArrayPercentLiteral:
Expand All @@ -119,19 +102,11 @@ Layout/SpaceInsideBlockBraces:
# Use `{}` not `{ }`.
Layout/SpaceInsideHashLiteralBraces:
Enabled: true
EnforcedStyle: space
EnforcedStyleForEmptyBraces: no_space

# Use `foo(bar)` not `foo( bar )`
Layout/SpaceInsideParens:
Enabled: true

# Requiring a space is not yet supported as of 0.59.2
# Use `%w[ foo ]` not `%w[foo]`
Layout/SpaceInsidePercentLiteralDelimiters:
Enabled: false
#EnforcedStyle: space

# Use `hash[:key]` not `hash[ :key ]`
Layout/SpaceInsideReferenceBrackets:
Enabled: true
Expand Down Expand Up @@ -164,20 +139,6 @@ Performance/FlatMap:
Performance/UnfreezeString:
Enabled: true

# Prefer assert_not over assert !
Rails/AssertNot:
Include:
- "test/**/*"

# Prefer assert_not_x over refute_x
Rails/RefuteMethods:
Include:
- "test/**/*"

# We generally prefer &&/|| but like low-precedence and/or in context
Style/AndOr:
Enabled: false

# Prefer Foo.method over Foo::method
Style/ColonMethodCall:
Enabled: true
Expand All @@ -199,17 +160,6 @@ Style/ParenthesesAroundCondition:

Style/PercentLiteralDelimiters:
Enabled: true
PreferredDelimiters:
default: "()"
"%i": "[]"
"%I": "[]"
"%r": "{}"
"%w": "[]"
"%W": "[]"

# Use quotes for string literals when they are enough.
Style/RedundantPercentQ:
Enabled: false

Style/RedundantReturn:
Enabled: true
Expand Down

0 comments on commit ae3082f

Please sign in to comment.