Skip to content

feat(core): add clone.SplitGroupsByPairs (#173) - #209

Merged
DaisukeYoda merged 1 commit into
mainfrom
feat/173-core-split-groups
Oct 15, 2026
Merged

DaisukeYoda merged 1 commit into
mainfrom
feat/173-core-split-groups

Conversation

@DaisukeYoda

Copy link
Copy Markdown
Member

Part of #173.

Adds SplitGroupsByPairs to core/clone, next to FilterGroupsWithoutBackingPairs. It restricts each clone group to the connected components of the pairs that remain after suppression and the clone-type filter, and it recomputes each group's type and similarity from those pairs.

The code and tests are moved unchanged from polyscan/internal/js/analyzer/clone_group_split.go. After this merges and core/v0.2.9 is tagged, a follow-up PR switches polyscan to the core function and deletes the local copy. pyscn can then drop splitDisconnectedGroups and filterCloneGroupsByPairs.

@DaisukeYoda
DaisukeYoda merged commit 04f3f4c into main Oct 15, 2026
4 checks passed
@DaisukeYoda
DaisukeYoda deleted the feat/173-core-split-groups branch October 15, 2026 02:24
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.

1 participant