Skip to content

Commit

Permalink
Remove obsolete AllowComments option
Browse files Browse the repository at this point in the history
  • Loading branch information
Darhazer committed Mar 30, 2022
1 parent df90ced commit aa4377a
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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 aa4377a

Please sign in to comment.