Closed eregon closed 1 year ago
This is fixed on main
now. Looks like there are 3 files left that are failing:
- language/predefined_spec.rb
- language/regexp/character_classes_spec.rb
- language/rescue_spec.rb
I'll take a look later.
That was fast!
As a note there are a few more errors when using command_line core language library optional security
instead of language
FYI some quick perf numbers, and this is with some errors on YARP, but:
$ /usr/bin/time -v bundle exec ruby $(bundle show rubocop)/exe/rubocop --cache false command_line core language library optional security
Inspecting 4402 files
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:35.15
$ /usr/bin/time -v bundle exec ruby -rparser/yarp/rubocop $(bundle show rubocop)/exe/rubocop --cache false command_line core language library optional security
Inspecting 4402 files
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:11.40
That's like a 3x speedup on RuboCop wall clock time!
The full output on YARP with errors:
...........................................................................................................................................................................................................................................................................................................................................................................An error occurred while Lint/RequireParentheses cop was inspecting /home/eregon/code/rubyspec/core/dir/children_spec.rb:132:55.
To see the complete backtrace run rubocop -d.
...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................An error occurred while Lint/ParenthesesAsGroupedExpression cop was inspecting /home/eregon/code/rubyspec/core/io/read_spec.rb:694:36.
To see the complete backtrace run rubocop -d.
An error occurred while Layout/SpaceInLambdaLiteral cop was inspecting /home/eregon/code/rubyspec/core/io/read_spec.rb:697:2.
To see the complete backtrace run rubocop -d.
An error occurred while Style/StabbyLambdaParentheses cop was inspecting /home/eregon/code/rubyspec/core/io/read_spec.rb:697:2.
To see the complete backtrace run rubocop -d.
....................................................................An error occurred while Lint/ParenthesesAsGroupedExpression cop was inspecting /home/eregon/code/rubyspec/core/kernel/eval_spec.rb:450:3.
To see the complete backtrace run rubocop -d.
.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................W.......................................................................................................................................................................................................................................................................................
Offenses:
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
1966 files inspected, 1 offense detected
I was trying this on ruby/spec and I got this error:
And FWIW running without this gem (and changing to
TargetRubyVersion: 3.3
):