UNPKG

@ui5/linter

Version:

A static code analysis tool for UI5

19 lines 650 B
import { JsonFix } from "../linter/manifestJson/fix/JsonFix.js"; export default function generateChangesJson(messages, changeSets) { // Process each message that has a fix for (const { fix } of messages) { if (!(fix instanceof JsonFix)) { continue; // Skip messages without fix or with non-JSON fix } const changes = fix.generateChanges?.(); if (changes) { if (Array.isArray(changes)) { changeSets.push(...changes); } else { changeSets.push(changes); } } } } //# sourceMappingURL=generateChangesJson.js.map