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

- old
+ new

@@ -89,10 +89,14 @@ Layout/CaseIndentation: Description: 'Indentation of when in a case/when/[else/]end.' StyleGuide: '#indent-when-to-case' Enabled: true +Layout/ClosingHeredocIndentation: + Description: 'Checks the indenation of here document closings.' + Enabled: true + Layout/ClosingParenthesisIndentation: Description: 'Checks the indentation of hanging closing parentheses.' Enabled: true Layout/CommentIndentation: @@ -228,10 +232,14 @@ Layout/InitialIndentation: Description: >- Checks the indentation of the first non-blank non-comment line in a file. Enabled: true +Layout/LeadingBlankLines: + Description: Check for unnecessary blank lines at the beginning of a file. + Enabled: true + Layout/LeadingCommentSpace: Description: 'Comments should start with a space.' StyleGuide: '#hash-space' Enabled: true @@ -683,14 +691,10 @@ Description: >- Do not use the same name as outer local variable for block arguments or block local variables. Enabled: true -Lint/SplatKeywordArguments: - Description: 'Checks for use of splat keyword arguments as a single Hash.' - Enabled: true - Lint/StringConversionInInterpolation: Description: 'Checks for Object#to_s usage in string interpolation.' StyleGuide: '#no-to-s' Enabled: true @@ -1120,10 +1124,14 @@ Rails/Blank: Description: 'Enforces use of `blank?`.' Enabled: true +Rails/BulkChangeTable: + Description: 'Check whether alter queries are combinable.' + Enabled: true + Rails/CreateTableWithTimestamps: Description: >- Checks the migration for which timestamps are not included when creating a new table. Enabled: true @@ -1142,11 +1150,11 @@ Description: 'Do not use allow_blank as an option to delegate.' Enabled: true Rails/DynamicFindBy: Description: 'Use `find_by` instead of dynamic `find_by_*`.' - StyleGuide: 'https://github.com/bbatsov/rails-style-guide#find_by' + StyleGuide: 'https://github.com/rubocop-hq/rails-style-guide#find_by' Enabled: true Rails/EnumUniqueness: Description: 'Avoid duplicate integers in hash-syntax `enum` declaration.' Enabled: true @@ -1166,26 +1174,26 @@ Description: 'Use `Rails.root.join` for file path joining.' Enabled: true Rails/FindBy: Description: 'Prefer find_by over where.first.' - StyleGuide: 'https://github.com/bbatsov/rails-style-guide#find_by' + StyleGuide: 'https://github.com/rubocop-hq/rails-style-guide#find_by' Enabled: true Rails/FindEach: Description: 'Prefer all.find_each over all.find.' - StyleGuide: 'https://github.com/bbatsov/rails-style-guide#find-each' + StyleGuide: 'https://github.com/rubocop-hq/rails-style-guide#find-each' Enabled: true Rails/HasAndBelongsToMany: Description: 'Prefer has_many :through to has_and_belongs_to_many.' - StyleGuide: 'https://github.com/bbatsov/rails-style-guide#has-many-through' + StyleGuide: 'https://github.com/rubocop-hq/rails-style-guide#has-many-through' Enabled: true Rails/HasManyOrHasOneDependent: Description: 'Define the dependent option to the has_many and has_one associations.' - StyleGuide: 'https://github.com/bbatsov/rails-style-guide#has_many-has_one-dependent-option' + StyleGuide: 'https://github.com/rubocop-hq/rails-style-guide#has_many-has_one-dependent-option' Enabled: true Rails/HttpPositionalArguments: Description: 'Use keyword arguments instead of positional arguments in http method calls.' Enabled: true @@ -1201,11 +1209,11 @@ Description: 'Checks for associations where the inverse cannot be determined automatically.' Enabled: true Rails/LexicallyScopedActionFilter: Description: "Checks that methods specified in the filter's `only` or `except` options are explicitly defined in the controller." - StyleGuide: 'https://github.com/bbatsov/rails-style-guide#lexically-scoped-action-filter' + StyleGuide: 'https://github.com/rubocop-hq/rails-style-guide#lexically-scoped-action-filter' Enabled: true Rails/NotNullColumn: Description: 'Do not add a NOT NULL column without a default value' Enabled: true @@ -1232,11 +1240,11 @@ Rails/ReadWriteAttribute: Description: >- Checks for read_attribute(:attr) and write_attribute(:attr, val). - StyleGuide: 'https://github.com/bbatsov/rails-style-guide#read-attribute' + StyleGuide: 'https://github.com/rubocop-hq/rails-style-guide#read-attribute' Enabled: true Rails/RedundantReceiverInWithOptions: Description: 'Checks for redundant receiver in `with_options`.' Enabled: true @@ -1253,11 +1261,11 @@ Description: 'Use consistent syntax for request.referer.' Enabled: true Rails/ReversibleMigration: Description: 'Checks whether the change method of the migration file is reversible.' - StyleGuide: 'https://github.com/bbatsov/rails-style-guide#reversible-migration' + StyleGuide: 'https://github.com/rubocop-hq/rails-style-guide#reversible-migration' Reference: 'http://api.rubyonrails.org/classes/ActiveRecord/Migration/CommandRecorder.html' Enabled: true Rails/SafeNavigation: Description: "Use Ruby's safe navigation operator (`&.`) instead of `try!`" @@ -1274,11 +1282,11 @@ Reference: 'http://guides.rubyonrails.org/active_record_validations.html#skipping-validations' Enabled: true Rails/TimeZone: Description: 'Checks the correct usage of time zone aware methods.' - StyleGuide: 'https://github.com/bbatsov/rails-style-guide#time' + StyleGuide: 'https://github.com/rubocop-hq/rails-style-guide#time' Reference: 'http://danilenko.org/2012/7/6/rails_timezones' Enabled: true Rails/UniqBeforePluck: Description: 'Prefer the use of uniq or distinct before pluck.' @@ -1326,10 +1334,14 @@ Reference: 'https://ruby-doc.org/stdlib-2.3.3/libdoc/yaml/rdoc/YAML.html#module-YAML-label-Security' Enabled: true #################### Style ############################### +Style/AccessModifierDeclarations: + Description: 'Checks style of how access modifiers are used.' + Enabled: true + Style/Alias: Description: 'Use alias instead of alias_method.' StyleGuide: '#alias-method' Enabled: true @@ -2026,9 +2038,13 @@ StyleGuide: '#no-else-with-unless' Enabled: true Style/UnneededCapitalW: Description: 'Checks for %W when interpolation is not needed.' + Enabled: true + +Style/UnneededCondition: + Description: 'Checks for unnecessary conditional expressions.' Enabled: true Style/UnneededInterpolation: Description: 'Checks for strings that are just an interpolated expression.' Enabled: true