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

[prism] False positive for EmptyLineAfterGuardClause for heredoc #12858

Open
andyw8 opened this issue Apr 21, 2024 · 0 comments
Open

[prism] False positive for EmptyLineAfterGuardClause for heredoc #12858

andyw8 opened this issue Apr 21, 2024 · 0 comments
Labels

Comments

@andyw8
Copy link
Contributor

andyw8 commented Apr 21, 2024

With the parser set to prism, the following causes a false positive:

def foo
  raise(<<~MSG) unless 1 == 2
    a
    b
  MSG

  true
end
% bin/rubocop . -V                                                                                                                                               andyw8
1.63.2 (using Prism 0.26.0, rubocop-ast 1.31.2, running on ruby 3.3.0) [x86_64-linux]
  - rubocop-graphql 1.5.1
  - rubocop-minitest 0.35.0
  - rubocop-performance 1.21.0
  - rubocop-rails 2.24.1
  - rubocop-sorbet 0.8.1
@koic koic added the prism label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants