Sha256: c068496eff45bc4c7680eb892f09f7321aeb6487619b4d4fd1ab1bd75759d3e3

Contents?: true

Size: 1.97 KB

Versions: 39

Compression:

Stored size: 1.97 KB

Contents

# Disabling all Layout/* rules, as they're unnecessary when the user is using
# Syntax Tree to handle all of the formatting.
Layout:
  Enabled: false

# Re-enable Layout/LineLength because certain cops that most projects use
# (e.g. Style/IfUnlessModifier) require Layout/LineLength to be enabled.
# By leaving it disabled, those rules will mis-fire.
#
# Users can always override these defaults in their own rubocop.yml files.
# https://github.com/prettier/plugin-ruby/issues/825
Layout/LineLength:
  Enabled: true

Style/MultilineIfModifier:
  Enabled: false

# Syntax Tree will expand empty methods to put the end keyword on the subsequent
# line to reduce git diff noise.
Style/EmptyMethod:
  EnforcedStyle: expanded

# lambdas that are constructed with the lambda method call cannot be safely
# turned into lambda literals without removing a method call.
Style/Lambda:
  Enabled: false

# When method chains with multiple blocks are chained together, rubocop will let
# them pass if they're using braces but not if they're using do and end
# keywords. Because we will break individual blocks down to using keywords if
# they are multiline, this conflicts with rubocop.
Style/MultilineBlockChain:
  Enabled: false

# Syntax Tree by default uses double quotes, so changing the configuration here
# to match that.
Style/StringLiterals:
  EnforcedStyle: double_quotes

Style/StringLiteralsInInterpolation:
  EnforcedStyle: double_quotes

Style/QuotedSymbols:
  EnforcedStyle: double_quotes

# We let users have a little more freedom with symbol and words arrays. If the
# user only has an individual item like ["value"] then we don't bother
# converting it because it ends up being just noise.
Style/SymbolArray:
  Enabled: false

Style/WordArray:
  Enabled: false

# We don't support trailing commas in Syntax Tree by default, so just turning
# these off for now.
Style/TrailingCommaInArguments:
  Enabled: false

Style/TrailingCommaInArrayLiteral:
  Enabled: false

Style/TrailingCommaInHashLiteral:
  Enabled: false

Version data entries

39 entries across 39 versions & 2 rubygems

Version Path
syntax_tree-6.2.0 config/rubocop.yml
syntax_tree-6.1.1 config/rubocop.yml
syntax_tree-6.1.0 config/rubocop.yml
syntax_tree-6.0.2 config/rubocop.yml
syntax_tree-6.0.1 config/rubocop.yml
syntax_tree-6.0.0 config/rubocop.yml
syntax_tree-5.3.0 config/rubocop.yml
syntax_tree-5.2.0 config/rubocop.yml
syntax_tree-5.1.0 config/rubocop.yml
syntax_tree-5.0.1 config/rubocop.yml
syntax_tree-5.0.0 config/rubocop.yml
syntax_tree-4.3.0 config/rubocop.yml
syntax_tree-4.2.0 config/rubocop.yml
syntax_tree-4.1.0 config/rubocop.yml
syntax_tree-4.0.2 config/rubocop.yml
syntax_tree-4.0.1 config/rubocop.yml
syntax_tree-4.0.0 config/rubocop.yml
syntax_tree-3.6.3 config/rubocop.yml
syntax_tree-3.6.2 config/rubocop.yml
syntax_tree-3.6.1 config/rubocop.yml