trackfw 2.4.0 → 2.4.1
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/config/index.js +1 -1
- package/src/validator/index.js +3 -1
package/package.json
CHANGED
package/src/config/index.js
CHANGED
|
@@ -126,7 +126,7 @@ function parse(content, cfg) {
|
|
|
126
126
|
const colonIdx = line.indexOf(':');
|
|
127
127
|
if (colonIdx > 0) {
|
|
128
128
|
const k = line.slice(0, colonIdx).trim();
|
|
129
|
-
const v = line.slice(colonIdx + 1).trim();
|
|
129
|
+
const v = line.slice(colonIdx + 1).trim().replace(/^["']|["']$/g, '');
|
|
130
130
|
if (k) rules[k] = v;
|
|
131
131
|
}
|
|
132
132
|
continue;
|
package/src/validator/index.js
CHANGED
|
@@ -777,11 +777,13 @@ async function validate() {
|
|
|
777
777
|
const result = await validateUnfiltered()
|
|
778
778
|
let { violations, warnings } = result
|
|
779
779
|
|
|
780
|
-
// Ratchet: filtrar violations que já estavam no baseline
|
|
780
|
+
// Ratchet: filtrar violations e warnings que já estavam no baseline
|
|
781
781
|
const baseline = loadBaseline()
|
|
782
782
|
if (baseline) {
|
|
783
783
|
const baselineSet = new Set(baseline.violations || [])
|
|
784
784
|
violations = violations.filter(v => !baselineSet.has(v))
|
|
785
|
+
const baselineWarnSet = new Set(baseline.warnings || [])
|
|
786
|
+
warnings = warnings.filter(w => !baselineWarnSet.has(w))
|
|
785
787
|
}
|
|
786
788
|
|
|
787
789
|
// Modo lenient: mover violations para warnings, exit code 0
|