Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Follow "Separate Keyword Arguments from Positional Arguments" #607

Merged

Conversation

koic
Copy link
Collaborator

@koic koic commented Sep 4, 2019

Follow ruby/ruby#2395.

RuboCop's CI of Ruby 2.7 matrix is failing. This is due to a deprecation warning in Ruby 2.7.

  1) RuboCop::CLI when BlockDelimiters has braces_for_chaining style
  corrects SpaceBeforeBlockBraces, SpaceInsideBlockBraces offenses
     Failure/Error: expect($stderr.string).to eq('')

       expected: ""
            got:
            "/usr/local/bundle/gems/parser-2.6.4.0/lib/parser/source/tree_rewriter.rb:284:
            warning: The last
            argu...parser-2.6.4.0/lib/parser/source/tree_rewriter.rb:288:
            warning: for `trigger_policy' defined here\n"

https://circleci.com/gh/rubocop-hq/rubocop/67195

This PR suppress the following Ruby 2.7's warning.

% cd path/to/parser
% bundle exec rake

(snip)

/Users/koic/src/github.com/whitequark/parser/lib/parser/source/tree_rewriter.rb:284:
warning: The last argument for `trigger_policy' (defined at
/Users/koic/src/github.com/whitequark/parser/lib/parser/source/tree_rewriter.rb:288)
is used as the keyword parameter

Follow ruby/ruby#2395.

RuboCop's CI of Ruby 2.7 matrix is failing. This is due to
a deprecation warning in Ruby 2.7.

```console
  1) RuboCop::CLI when BlockDelimiters has braces_for_chaining style
  corrects SpaceBeforeBlockBraces, SpaceInsideBlockBraces offenses
     Failure/Error: expect($stderr.string).to eq('')

       expected: ""
            got:
            "/usr/local/bundle/gems/parser-2.6.4.0/lib/parser/source/tree_rewriter.rb:284:
            warning: The last
            argu...parser-2.6.4.0/lib/parser/source/tree_rewriter.rb:288:
            warning: for `trigger_policy' defined here\n"
```

https://circleci.com/gh/rubocop-hq/rubocop/67195

This PR suppress the following Ruby 2.7's warning.

```console
% cd path/to/parser
% bundle exec rake

(snip)

/Users/koic/src/github.com/whitequark/parser/lib/parser/source/tree_rewriter.rb:284:
warning: The last argument for `trigger_policy' (defined at
/Users/koic/src/github.com/whitequark/parser/lib/parser/source/tree_rewriter.rb:288)
is used as the keyword parameter
```
@koic koic force-pushed the separate_kwargs_from_positional_args branch from d2c8e28 to f3cd9e5 Compare September 4, 2019 10:03
@whitequark whitequark merged commit 6aed650 into whitequark:master Sep 4, 2019
@koic koic deleted the separate_kwargs_from_positional_args branch September 4, 2019 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants