Repository navigation
feat(build): 支持构建系统声明自己的检测忽略规则 - #218
Merged
Merged
Conversation
WhiteZeek
marked this pull request as ready for review
November 28, 2026 06:08
WhiteZeek
marked this pull request as draft
November 28, 2026 06:17
WhiteZeek
marked this pull request as ready for review
November 28, 2026 06:19
This was referenced Nov 28, 2026
Keep the Lithe-IDEA#218 entry as the only pending record after Lithe-IDEA#226 moved the others into the timeline.
- build.detect 总是返回 detection.pluginIgnoredPaths(没有规则时为 [],提前返回的分支也带上) - 插件规则编译失败时只拒绝该插件(plugin.manifest.invalid,字段 buildSystems[i].detection.ignoredPaths[j]),不再让整个检测失败或记到工作区 ignoredPaths 上 - 新增固定样例 rust/fixtures/build/detect-plugin-ignored-paths-v1.json,测试改为按样例跑,并补被遮蔽声明、工作区根同名、插件 ! 规则、outermost 外层被忽略的用例 - 契约 README 与 schema 去掉"打包前调用 plugins.declarative.validate"的说法,写明规则相对工作区根匹配、宜用不锚定写法、工作区 ! 放回的做法 - 构建系统领域页中英补 detection.ignoredPaths;协议更新记录按新格式登记 Lithe-IDEA#218
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.
关联 Issue / Linked issue
Refs 1lck/Lithe-IDEA#2485
PR 类型 / Type
改动说明 / What changes
工作区里可能同时有多个构建系统。过去,插件只要找到标记文件,就把所在目录识别为构建实例。测试夹具和依赖副本因此也会触发模型同步。
buildSystems0 的detection中增加可选的ignoredPaths。沿用工作区的 gitignore 匹配和校验,每组最多 256 条,每条最多 1024 UTF-8 字节。清单有误时返回出错字段。build.detect有插件规则时返回pluginIgnoredPaths,包含插件、构建系统、显示名称和原始规则。即使该系统没有实例也可显示来源。类型专属:feat
范围检查
清单 schema 现在检查注释、空否定、控制字符和模式首尾的空白;契约列出打包前调用
plugins.declarative.validate的输入和返回值,用于检查实际 glob 和 UTF-8 字节数。验证
node shared/plugins/scripts/verify-docs.mjsgit diff --checkbuild.detect。六个目录在旧清单下识别 6 个,加入插件规则后识别 3 个,工作区添加!testdata/后识别 4 个。