Skip to content

Commit

Permalink
Suppress offenses of InternalAffairs/ExampleDescription
Browse files Browse the repository at this point in the history
This commit suppresses the following offenses of `InternalAffairs/ExampleDescription`:

```console
$ bundle exec rubocop
(snip)

spec/rubocop/cop/rails/bulk_change_table_spec.rb:348:8: C: [Correctable] InternalAffairs/ExampleDescription: Description does not match use of expect_offense.
    it 'register an offense when using string as table name' do
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/rubocop/cop/rails/bulk_change_table_spec.rb:358:8: C: [Correctable] InternalAffairs/ExampleDescription: Description does not match use of expect_offense.
    it 'register an offense when using mixed style table name' do
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/rubocop/cop/rails/lexically_scoped_action_filter_spec.rb:61:6: C: [Correctable] InternalAffairs/ExampleDescription: Description does not match use of expect_offense.
  it 'register an offense when using action filter in module' do
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/rubocop/cop/rails/read_write_attribute_spec.rb:16:8: C: [Correctable] InternalAffairs/ExampleDescription: Description does not match use of expect_offense.
    it 'register an offense and corrects a string' do
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

292 files inspected, 4 offenses detected, 4 offenses autocorrectable
```
  • Loading branch information
koic committed Apr 22, 2024
1 parent cf400eb commit 28b274b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spec/rubocop/cop/rails/bulk_change_table_spec.rb
Expand Up @@ -345,7 +345,7 @@ def change; end
RUBY
end

it 'register an offense when using string as table name' do
it 'registers an offense when using string as table name' do
expect_offense(<<~RUBY)
def change
remove_index "users", :name
Expand All @@ -355,7 +355,7 @@ def change
RUBY
end

it 'register an offense when using mixed style table name' do
it 'registers an offense when using mixed style table name' do
expect_offense(<<~RUBY)
def change
remove_index "users", :name
Expand Down
Expand Up @@ -58,7 +58,7 @@ class LoginController < ApplicationController
RUBY
end

it 'register an offense when using action filter in module' do
it 'registers an offense when using action filter in module' do
expect_offense <<~RUBY
module FooMixin
extend ActiveSupport::Concern
Expand Down
2 changes: 1 addition & 1 deletion spec/rubocop/cop/rails/read_write_attribute_spec.rb
Expand Up @@ -13,7 +13,7 @@
RUBY
end

it 'register an offense and corrects a string' do
it 'registers an offense and corrects a string' do
expect_offense(<<~RUBY)
res = read_attribute('test')
^^^^^^^^^^^^^^^^^^^^^^ Prefer `self['test']`.
Expand Down

0 comments on commit 28b274b

Please sign in to comment.