Posted 5 days ago. Visible to the public. Auto-destruct in 55 days

Rubocop 6.2.0. released

In case you include the spec helper from Rubocop (require 'makandra_rubocop/support/rubocop_spec') in the spec/rubocop_spec.rb, you might want to upgrade Rubocop to get better error messages on failures and in projects with deprecation warnings from e.g. parser.

6.2.0 - 2021-06-20

Compatible changes

  • Use the format simple output, and not progress.

  • Also output stdout if stderr is present. Otherwise warnings like
    whitequark/parser will block the actual offenses message to be skipped.
    Originally we thought the only stderr message will be a failure of
    rubocop itself, so there would be never a stdout, too.

    Before:

    Copy
    1) rubocop has no offenses Failure/Error: example.run warning: parser/current is loading parser/ruby26, which recognizes warning: 2.6.7-compliant syntax, but you are running 2.6.5. warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri. # ./spec/support/with_power.rb:11:in `block (2 levels) in <top (required)>' # ./spec/support/vcr.rb:16:in `block (2 levels) in <top (required)>' # ./spec/support/database_cleaner.rb:21:in `block (2 levels) in <top (required)>'

    After:

    Copy
    1) rubocop has no offenses Failure/Error: example.run warning: parser/current is loading parser/ruby26, which recognizes warning: 2.6.7-compliant syntax, but you are running 2.6.5. warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri. == app/user/search.rb == C: 5: 3: [Correctable] Layout/IndentationWidth: Use 2 (not 5) spaces for indentation. 1016 files inspected, 1 offense detected, 1 offense auto-correctable # ./spec/support/with_power.rb:11:in `block (2 levels) in <main>' # ./spec/support/vcr.rb:16:in `block (2 levels) in <main>' # ./spec/support/database_cleaner.rb:21:in `block (2 levels) in <main>'
Growing Rails Applications in Practice
Check out our new e-book:
Learn to structure large Ruby on Rails codebases with the tools you already know and love.

Owner of this card:

Avatar
Emanuel De
Last edit:
5 days ago
by Emanuel De
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Emanuel De to makandra dev
This website uses short-lived cookies to improve usability.
Accept or learn more