Skip to content

Style/SuperArguments is probably not safe to autocorrect #12926

@tagliala

Description

@tagliala

Expected behavior

Safe autofix of Style/SuperArguments offenses does not break CI

Actual behavior

Safe autofix breaks CI

Steps to reproduce the problem

https://github.com/ifad/chronomodel/actions/runs/9206966951/job/25325982139?pr=294#step:6:1076

If we autofix

https://github.com/ifad/chronomodel/blob/804afe24cc5cbf049822e56076c81e4614ec3497/lib/chrono_model/adapter/migrations.rb#L83

then

rspec ./spec/chrono_model/adapter/migrations_spec.rb:125

fails

     Failure/Error: super
     
     LocalJumpError:
       no block given (yield)

RuboCop version

Include the output of rubocop -V or bundle exec rubocop -V if using Bundler.
If you see extension cop versions (e.g. rubocop-performance, rubocop-rspec, and others)
output by rubocop -V, include them as well. Here's an example:

$ rubocop -V
1.64.0 (using Parser 3.3.1.0, rubocop-ast 1.31.3, running on ruby 3.3.1) [x86_64-darwin23]
  - rubocop-packaging 0.5.2
  - rubocop-performance 1.21.0
  - rubocop-rails 2.25.0
  - rubocop-rake 0.6.0
  - rubocop-rspec 2.29.2

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy