Skip to content

Commit

Permalink
Suppress RuboCop's offenses
Browse files Browse the repository at this point in the history
This commit suppresses the following RuboCop's offenses:

```console
$ bundle exec rubocop -a
Inspecting 25 files
....................C....

Offenses:

spec/rubocop/cop/rake/desc_spec.rb:4:6: C: [Corrected] InternalAffairs/ExampleDescription: Description does not match use of expect_offense.
  it 'register an offense for task on the top level' do
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/rubocop/cop/rake/desc_spec.rb:16:6: C: [Corrected] InternalAffairs/ExampleDescription: Description does not match use of expect_offense.
  it 'register an offense for task with block in a block' do
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/rubocop/cop/rake/desc_spec.rb:33:6: C: [Corrected] InternalAffairs/ExampleDescription: Description does not match use of expect_offense.
  it 'register an offense for task in kwbegin' do
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

25 files inspected, 3 offenses detected, 3 offenses corrected
```
  • Loading branch information
koic committed May 30, 2024
1 parent 673a740 commit 2207e15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/rubocop/cop/rake/desc_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

RSpec.describe RuboCop::Cop::Rake::Desc, :config do
it 'register an offense for task on the top level' do
it 'registers an offense for task on the top level' do
expect_offense(<<~RUBY)
task :foo
^^^^^^^^^ Describe the task with `desc` method.
Expand All @@ -13,7 +13,7 @@
RUBY
end

it 'register an offense for task with block in a block' do
it 'registers an offense for task with block in a block' do
expect_offense(<<~RUBY)
tap do
task :foo
Expand All @@ -30,7 +30,7 @@
RUBY
end

it 'register an offense for task in kwbegin' do
it 'registers an offense for task in kwbegin' do
expect_offense(<<~RUBY)
begin
task :foo
Expand Down

0 comments on commit 2207e15

Please sign in to comment.