Skip to content

Commit

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

```console
$ bundle exec rake
(snip)

Offenses:

spec/rubocop/ast/procarg0_node_spec.rb:4:50: C: [Correctable] InternalAffairs/NodeFirstOrLastArgument:
Use #first_argument instead of #arguments.first.
  let(:procarg0_node) { parse_source(source).ast.arguments.first }
                                                 ^^^^^^^^^^^^^^^

163 files inspected, 1 offense detected, 1 offense autocorrectable
```
  • Loading branch information
koic committed Nov 9, 2023
1 parent 58388af commit aad7428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/rubocop/ast/procarg0_node_spec.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true

RSpec.describe RuboCop::AST::Procarg0Node, :ruby27 do
let(:procarg0_node) { parse_source(source).ast.arguments.first }
let(:procarg0_node) { parse_source(source).ast.first_argument }

describe '.new' do
context 'with a block' do
Expand Down

0 comments on commit aad7428

Please sign in to comment.