Skip to content

chore: bump rubocop to ~> 1.86 and rubocop-rspec to ~> 3.9#58

Merged
jasonbosco merged 1 commit intotypesense:masterfrom
OLIOEX:bump-rubocop
Apr 28, 2026
Merged

chore: bump rubocop to ~> 1.86 and rubocop-rspec to ~> 3.9#58
jasonbosco merged 1 commit intotypesense:masterfrom
OLIOEX:bump-rubocop

Conversation

@erimicel
Copy link
Copy Markdown
Contributor

@erimicel erimicel commented Apr 27, 2026

Summary

  • Bump rubocop from 1.72.2 → ~> 1.86
  • Bump rubocop-rspec from ~> 3.6 → ~> 3.9
  • Loosen exact version pin to allow future patch/minor updates

Changes

  • Fixed 1 real offence in collection_spec.rb (autocorrected)
  • Ignored RSpec/Output and Naming/PredicateMethod in spec/spec_helper.rb (used for test setup, not assertions)

Verification

  • rubocop: 0 offences

Notes

Happy to refactor spec_helper.rb instead of ignoring cops if preferred.

PR Checklist

Bumps the linting toolchain:
- rubocop: 1.72.2 (pinned exact) -> ~> 1.86
- rubocop-rspec: ~> 3.6 -> ~> 3.9

Loosens rubocop to a pessimistic constraint so it can pick up patch and
minor bumps without another Gemfile change.

The newer rubocop / rubocop-rspec set surfaces ten new offences. Nine of
them are two cops misfiring on `spec/spec_helper.rb`, which is integration
infrastructure (boots Typesense via docker-compose) rather than an
example file:

- `RSpec/Output` flags the `puts`/`print` calls that report
  docker-compose startup progress to the operator. They are not
  assertions on stdout, so the cop's intent does not apply.
- `Naming/PredicateMethod` flags `ensure_typesense_running`, which
  returns a boolean but has heavy side effects (boots a docker
  container); renaming it to `ensure_typesense_running?` would be
  misleading.

Both cops are excluded only for `spec/spec_helper.rb`. The tenth offence
was a real but trivial `Style/HashAsLastArrayItem` /
`Layout/SpaceInsideHashLiteralBraces` in `collection_spec.rb`, fixed by
autocorrect.

Verified: `bundle exec rubocop` reports 97 files, 0 offences. Full RSpec
suite is unchanged at 151 / 1 / 27 (the single pre-existing `truncate_len`
integration failure on master remains, unrelated).
@tharropoulos
Copy link
Copy Markdown
Contributor

Hey @erimicel ,

Thank you for the contributions! The PR description seems AI-generated and while I too used to let it write those PR descriptions for myself, the wall-of-text PR descriptions tend to be harder to read. Not to discourage use of AI tools of course, but toning the description a bit will be easier for us to understand what each PR does. :shipit:

@erimicel
Copy link
Copy Markdown
Contributor Author

Thank you for the contributions! The PR description seems AI-generated and while I too used to let it write those PR descriptions for myself, the wall-of-text PR descriptions tend to be harder to read. Not to discourage use of AI tools of course, but toning the description a bit will be easier for us to understand what each PR does. :shipit:

Thanks for the feedback and for reviewing all the PRs I’ve created! That’s fair, I’ll trim down the descriptions.

@jasonbosco jasonbosco merged commit 4b8e781 into typesense:master Apr 28, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants