-
Notifications
You must be signed in to change notification settings - Fork 175
Closed
Labels
enhancementNew feature or requestNew feature or requestrubocopErrors that affect Rubocop use of PrismErrors that affect Rubocop use of Prism
Milestone
Description
From rubocop/rubocop#12724 (comment)
I noticed there are 3 more offenses when running with ParserEngine: parser_prism:
core/objectspace/define_finalizer_spec.rb:166:1: W: Lint/ImplicitStringConcatenation: Combine and into a single string literal, rather than using implicit string concatenation.
RUBY
language/fixtures/bytes_magic_comment.rb:2:26: F: Lint/Syntax: invalid multibyte character 0xA0
(Using Ruby 3.3 parser; configure using TargetRubyVersion parameter, under AllCops)
$magic_comment_result = '你好'.bytes.inspect
^^
language/fixtures/bytes_magic_comment.rb:2:27: F: Lint/Syntax: invalid multibyte character 0xBD
(Using Ruby 3.3 parser; configure using TargetRubyVersion parameter, under AllCops)
$magic_comment_result = '你好'.bytes.inspect
^^
I guess there are due to some differences between parser gem and Prism::Translation::Parser.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestrubocopErrors that affect Rubocop use of PrismErrors that affect Rubocop use of Prism