test: add RuboCop metric differential baseline#44
Merged
Conversation
Run the vendored corpus through RuboCop metric cops with forced in-memory configuration and compare the captured raw values against CodeKeeper measurements. Accepted singleton-class behavior differences are recorded in a baseline that fails on both new and stale entries.
ebihara99999
force-pushed
the
feature/rubocop-differential-baseline
branch
from
July 10, 2026 15:03
f7a0a93 to
f337cdc
Compare
ebihara99999
marked this pull request as ready for review
July 10, 2026 15:28
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.
Purpose
Refs #41. This is stacked on #43 and implements the second PR-plan slice: RuboCop differential checks with an accepted-differences baseline.
Golden snapshots and regeneration tasks remain out of scope for a follow-up PR.
Changes
RuboCop::Cop::Teamwith forced in-memory configuration instead of repository.rubocop.yml.TargetRubyVersionexplicitly to the running Ruby major/minor used by CodeKeeper parsing.Metrics/ModuleLengthin the RuboCop oracle with the same CodeLength settings because CodeKeeper'sclass_lengthmetric covers module scopes as well.Impact
This is test-only. It adds CI coverage over the vendored corpus introduced by #43 and does not change runtime library behavior.
Verification
bundle exec rspec- 77 examples, 0 failuresbundle exec rubocop- 39 files inspected, no offensesgit diff --check- no whitespace errorsScope Out