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

[Fix #9032] Fix an error for Style/DocumentDynamicEvalDefinition #9033

Merged

Conversation

koic
Copy link
Member

@koic koic commented Nov 12, 2020

Fixes #9032.

This PR fixes an error for Style/DocumentDynamicEvalDefinition when using eval-type method with interpolated string that is not heredoc without comment doc.

It may be better to provide an option to accept non-heredoc interpolated-string in future.


Before submitting the PR make sure the following are checked:

  • Wrote good commit messages.
  • Commit message starts with [Fix #issue-number] (if the related issue exists).
  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • Added tests.
  • Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.
  • The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
  • Run bundle exec rake default. It executes all tests and RuboCop for itself, and generates the documentation.

@dvandersluis
Copy link
Member

Thanks @koic! 😓

@ShockwaveNN
Copy link
Contributor

ShockwaveNN commented Nov 12, 2020

Could this be released as 1.3.1? This is first time for me when rubocop --auto-gen-config spammed with errors

…ion`

Fixes rubocop#9032.

This PR fixes an error for `Style/DocumentDynamicEvalDefinition` when using
eval-type method with interpolated string that is not heredoc without comment doc.

It may be better to provide an option to accept non-heredoc interpolated-string in future.
@koic koic force-pushed the fix_an_error_for_document_dynamic_eval_definition branch from 773af9c to 67e889e Compare November 12, 2020 18:06
@bbatsov bbatsov merged commit 9b33b77 into rubocop:master Nov 13, 2020
@bbatsov
Copy link
Collaborator

bbatsov commented Nov 13, 2020

I'll probably cut 1.3.1 later today or tomorrow. There are a couple of other bug-fixes that I'd like to bundle in it.

@koic koic deleted the fix_an_error_for_document_dynamic_eval_definition branch November 13, 2020 08:08
koic added a commit to koic/rubocop that referenced this pull request Nov 13, 2020
Follow rubocop#9033 (comment)

`VersionChanged` has been updated to 1.4 by rubocop#9036, but if the next
release is 1.3.1 it will be 1.3 correctly.
So I think rubocop#9036 change can be included in the 1.3.1 bugfix release.
bbatsov pushed a commit that referenced this pull request Nov 13, 2020
Follow #9033 (comment)

`VersionChanged` has been updated to 1.4 by #9036, but if the next
release is 1.3.1 it will be 1.3 correctly.
So I think #9036 change can be included in the 1.3.1 bugfix release.
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.

Style/DocumentDynamicEvalDefinition error
4 participants