`spoom srb bump DIRECTORY` bumps files outside DIRECTORY

Open Beginner friendly
#1,037 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@RaphaelFakhri is already working on this.

Since Oct 21, 2026.

  • #1038 by @RaphaelFakhri — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
ruby
Domain
cli

Research direction

Start by locating the spoom srb bump DIRECTORY command and the path filtering logic described in the issue. Check how it expands DIRECTORY and compares it with file paths, then run the command with sibling directories such as lib/b and lib/bb. Done means only files inside the requested directory are bumped.

Written by the indexing model from the issue text.

Description

spoom srb bump DIRECTORY keeps the files whose absolute path starts with the expanded DIRECTORY string. The check does not require a path separator after the directory name, so sibling directories that share the prefix are bumped too.

Steps to reproduce

  1. In a Sorbet project, create lib/b/file.rb and lib/bb/file.rb, both with # typed: false.
  2. Run spoom srb bump lib/b.

Expected behavior

Only lib/b/file.rb is bumped to typed: true.

Actual behavior

Both files are bumped:

Bumped `2` files from `false` to `true`:
 + lib/b/file.rb
 + lib/bb/file.rb
Dominant language
Ruby
Stars
274
Forks
30
Avg merge
3h 4m
Merged PRs (30d)
8

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Shopify/spoom

All issues in Shopify/spoom

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.