Conversation
Enhanced the rule filtering logic across multiple output plugins by introducing the `applySubSeriesGlobPrefix` function. This function modifies the glob patterns of rules based on their associated subSeries in the project configuration, ensuring more accurate file matching. Additionally, removed redundant test cases related to subSeries expansion and updated existing tests to reflect the new functionality. This change improves the flexibility and accuracy of rule handling in project configurations.
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.
Summary
subSeries语义:从规则系列扩展改为子目录前缀映射applySubSeriesGlobPrefix函数,支持智能 glob 拼接和重复前缀检测Changes
核心功能变更
subSeries语义变更:修改的文件
cli/src/utils/ruleFilter.tsexpandWithSubSeries,简化filterRulesByProjectConfig,新增applySubSeriesGlobPrefixcli/src/plugins/CursorOutputPlugin.tsapplySubSeriesGlobPrefix调用cli/src/plugins/KiroCLIOutputPlugin.tsapplySubSeriesGlobPrefix调用cli/src/plugins/ClaudeCodeCLIOutputPlugin.tsapplySubSeriesGlobPrefix调用cli/src/plugins/WindsurfOutputPlugin.tsapplySubSeriesGlobPrefix调用功能特性
*.vue→{prefix}/**/*.vue./prefix和prefix/Test plan
ruleFilter.test.ts新增applySubSeriesGlobPrefix测试ruleFilter.property.test.ts新增属性测试