Skip to content

Commit

Permalink
Merge pull request #10492 from rubocop/fix-useless-method-definition-…
Browse files Browse the repository at this point in the history
…config

Remove obsolete AllowComments option
  • Loading branch information
koic committed Mar 30, 2022
2 parents df90ced + aa4377a commit bd7a65f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion config/default.yml
Expand Up @@ -2327,8 +2327,8 @@ Lint/UselessMethodDefinition:
Description: 'Checks for useless method definitions.'
Enabled: true
VersionAdded: '0.90'
VersionChanged: '0.91'
Safe: false
AllowComments: true

Lint/UselessRuby2Keywords:
Description: 'Finds unnecessary uses of `ruby2_keywords`.'
Expand Down
2 changes: 0 additions & 2 deletions spec/rubocop/cop/lint/useless_method_definition_spec.rb
@@ -1,8 +1,6 @@
# frozen_string_literal: true

RSpec.describe RuboCop::Cop::Lint::UselessMethodDefinition, :config do
let(:cop_config) { { 'AllowComments' => true } }

it 'does not register an offense for empty constructor' do
expect_no_offenses(<<~RUBY)
class Foo
Expand Down

0 comments on commit bd7a65f

Please sign in to comment.