Skip to content

Commit

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

```console
$ bundle exec rake
(snip)
lib/rubocop/rails/schema_loader/schema.rb:181:11: C: [Corrected] Style/SuperArguments:
Call super without arguments and parentheses when the signature is identical.
          super(node)
          ^^^^^^^^^^^

294 files inspected, 1 offense detected, 1 offense corrected
```
  • Loading branch information
koic committed May 27, 2024
1 parent f49ee58 commit 6c55cb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/rails/schema_loader/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class AddIndex < Index
attr_reader :table_name

def initialize(node)
super(node)
super

@table_name = node.first_argument.value
@columns, @expression = build_columns_or_expr(node.arguments[1])
Expand Down

0 comments on commit 6c55cb6

Please sign in to comment.