config/default.yml in rubocop-0.33.0 vs config/default.yml in rubocop-0.34.0
- old
+ new
@@ -47,10 +47,21 @@
# true, all cops in the default configuration are disabled, and and only cops
# in user configuration are enabled. This makes cops opt-in instead of
# opt-out. Note that when DisabledByDefault is true, cops in user
# configuration will be enabled even if they don't set the Enabled parameter.
DisabledByDefault: false
+ # Enables the result cache if true. Can be overridden by the --cache command
+ # line option.
+ UseCache: true
+ # Threshold for how many files can be stored in the result cache before some
+ # of the files are automatically removed.
+ MaxFilesInCache: 20000
+ # The cache will be stored in "rubocop_cache" under this directory. The name
+ # "/tmp" is special and will be converted to the system temporary directory,
+ # which is "/tmp" on Unix-like systems, but could be something else on other
+ # systems.
+ CacheRootDirectory: /tmp
# Indent private/protected/public as deep as method definitions
Style/AccessModifierIndentation:
EnforcedStyle: indent
SupportedStyles:
@@ -521,10 +532,19 @@
- indented
Style/NumericLiterals:
MinDigits: 5
+Style/OptionHash:
+ # A list of parameter names that will be flagged by this cop.
+ SuspiciousParamNames:
+ - options
+ - opts
+ - args
+ - params
+ - parameters
+
# Allow safe assignment in conditions.
Style/ParenthesesAroundCondition:
AllowSafeAssignment: true
Style/PercentLiteralDelimiters:
@@ -613,9 +633,19 @@
Style/StringLiteralsInInterpolation:
EnforcedStyle: single_quotes
SupportedStyles:
- single_quotes
- double_quotes
+
+Style/StringMethods:
+ # Mapping from undesired method to desired_method
+ # e.g. to use `to_sym` over `intern`:
+ #
+ # StringMethods:
+ # PreferredMethods:
+ # intern: to_sym
+ PreferredMethods:
+ intern: to_sym
Style/SpaceAroundBlockParameters:
EnforcedStyleInsidePipes: no_space
SupportedStyles:
- space