Skip to content

Produces broken english on corrections #2058

Open
@p-datadog

Description

@p-datadog

I have this in a diff proposed by rubocop -A:

-      it "will heavily restrict sampling" do
+      it "heavilies restrict sampling" do

While it's impressive that rubocop rewrites example descriptions when those rewrites are correct, it is equally unpleasant when it turns fine English into garbage.

 be rubocop -V
1.71.2 (using Parser 3.3.7.1, rubocop-ast 1.38.1, analyzing as Ruby 2.6, running on ruby 3.3.4) [x86_64-linux]
  - rubocop-packaging 0.5.2
  - rubocop-performance 1.23.1
  - rubocop-rspec 3.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions