Repository navigation
Make import-comments.rb start its own class and check all scripts - #290
Merged
Merged
Conversation
6 of 7 tasks
import-comments.rb started ExportComments instead of ImportComments, a slip from March 2026 that was also made in three other scripts and fixed there. Checking the syntax didn't catch any of them, so add a spec that checks every entry script starts a class it defines or loads. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Ian Heggie (OAF) <ian@oaf.org.au>
ianheggie-oaf
force-pushed
the
bugfix/import-comments-class-name
branch
from
November 5, 2026 13:14
7bf43d8 to
47a55d5
Compare
ianheggie-oaf
marked this pull request as ready for review
November 5, 2026 13:15
ianheggie-oaf
enabled auto-merge
November 5, 2026 13:15
Br3nda
approved these changes
Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
import-comments.rbstartedExportCommentsinstead ofImportComments. The same slip went into three other scripts in March 2026 and was fixed there, but none of the four was caught because the script specs only check syntax.A new spec checks that every entry script starts a class it defines or loads, so this can't slip through again.
mysqlgem, which hasn't been in the Gemfile since 2020. The umbrella repo's runbooks already list it as a script not to run, so this doesn't change anything in production.Type of change
How this was checked
The new spec fails for
import-comments.rbonly without the fix, and passes with it. RuboCop on the changed files is clean./code-review(or equivalent): fixed any concerns (and rechecked), linked follow-up issues above, or noted why they are not important aboveAssisted-by: Claude Code:claude-opus-5-5