feat(dacli): 抽 _blindspots.ts 骨架, BS 5 必查 ID 列表
This commit is contained in:
1 parent
8761fb0513
commit
1e35827703
1 file changed
+22
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* commands/form/_blindspots.ts — 5 类盲点规则 (设计期 lint + 运行时 validate 共享)
|
||||
*
|
||||
* 单一事实源: BS-23 / BS-31 / BS-32 / BS-15 / BS-V2
|
||||
* 调用方: validate.ts (运行时, 需 form id)
|
||||
* lint.ts (设计期, 不需 JNPF server)
|
||||
*/
|
||||
import type { FormDetail } from '../../core/types.ts'
|
||||
|
||||
export interface BlindspotIssue {
|
||||
id: 'BS-23' | 'BS-31' | 'BS-32' | 'BS-15' | 'BS-V2'
|
||||
level: 'ERROR' | 'WARN'
|
||||
path: string
|
||||
message: string
|
||||
}
|
||||
|
||||
export interface BlindspotResult {
|
||||
issues: BlindspotIssue[]
|
||||
blindspotIds: string[] // e.g. ['BS-23', 'BS-31', ...] — 5 必查 ID 列表
|
||||
}
|
||||
|
||||
export const BLINDSPOT_IDS = ['BS-23', 'BS-31', 'BS-32', 'BS-15', 'BS-V2'] as const
|
||||
Reference in new issue
Block a user