config/default.yml in rubocop-0.56.0 vs config/default.yml in rubocop-0.57.0

- old
+ new

@@ -78,11 +78,11 @@ # behavior by overriding `DisplayStyleGuide`, or by giving the # `-S/--display-style-guide` option. DisplayStyleGuide: false # When specifying style guide URLs, any paths and/or fragments will be # evaluated relative to the base URL. - StyleGuideBaseURL: https://github.com/bbatsov/ruby-style-guide + StyleGuideBaseURL: https://github.com/rubocop-hq/ruby-style-guide # Extra details are not displayed in offense messages by default. Change # behavior by overriding ExtraDetails, or by giving the # `-E/--extra-details` option. ExtraDetails: false # Additional cops that do not reference a style guide rule may be enabled by @@ -807,10 +807,16 @@ - normalcase - non_integer #################### Style ########################### +Style/AccessModifierDeclarations: + EnforcedStyle: group + SupportedStyles: + - inline + - group + Style/Alias: EnforcedStyle: prefer_alias SupportedStyles: - prefer_alias - prefer_alias_method @@ -1403,11 +1409,11 @@ PreferredMethods: intern: to_sym Style/SymbolArray: EnforcedStyle: percent - MinSize: 0 + MinSize: 2 SupportedStyles: - percent - brackets Style/SymbolProc: @@ -1509,11 +1515,11 @@ # bracket style: ['word1', 'word2'] - brackets # The `MinSize` option causes the `WordArray` rule to be ignored for arrays # smaller than a certain size. The rule is only applied to arrays # whose element count is greater than or equal to `MinSize`. - MinSize: 0 + MinSize: 2 # The regular expression `WordRegex` decides what is considered a word. WordRegex: !ruby/regexp '/\A[\p{Word}\n\t]+\z/' Style/YodaCondition: EnforcedStyle: all_comparison_operators @@ -1666,10 +1672,18 @@ # Convert usages of `!present?` to `blank?` NotPresent: true # Convert usages of `unless present?` to `if blank?` UnlessPresent: true +Rails/BulkChangeTable: + Database: null + SupportedDatabases: + - mysql + - postgresql + Include: + - db/migrate/*.rb + Rails/CreateTableWithTimestamps: Include: - db/migrate/*.rb Rails/Date: @@ -1702,9 +1716,15 @@ - app/**/*.rb - config/**/*.rb - lib/**/*.rb Exclude: - lib/**/*.rake + +Rails/FilePath: + EnforcedStyle: arguments + SupportedStyles: + - slashes + - arguments Rails/FindBy: Include: - app/models/**/*.rb