trackfw 2.5.1 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/validator/traceid.js +5 -0
package/package.json
CHANGED
package/src/validator/traceid.js
CHANGED
|
@@ -84,6 +84,11 @@ function checkTraceIds(reqDir, roadmapDir, fieldName) {
|
|
|
84
84
|
roadmapIndex.get(traceId).push({ file: path.basename(filePath), state })
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
+
// Salvaguarda: trace_id_field configurado mas nenhum arquivo indexado
|
|
88
|
+
if (reqIndex.size === 0 && roadmapIndex.size === 0) {
|
|
89
|
+
return ['traceid_config_warning: trace_id_field is set but no REQ/Roadmap entries were indexed — check reqDir, roadmapDir and roadmap_namespacing']
|
|
90
|
+
}
|
|
91
|
+
|
|
87
92
|
const violations = []
|
|
88
93
|
|
|
89
94
|
// traceid_duplicate_req: mesmo req_id em >1 REQ
|