Skip to content

Commit

Permalink
feat: add output
Browse files Browse the repository at this point in the history
  • Loading branch information
Szandor72 committed Nov 21, 2023
1 parent c96a58c commit be50a93
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions scripts/ci/prepare-scan.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ async function processLegacyFiles(modifiedFiles, legacyFiles) {

/**
* Prints the full paths of legacy files.
* @param {string[]} legacyFiles - Array of legacy file paths.
* @param {string[]} fileList - Array of legacy file paths.
*/
async function printLegacyFiles(legacyFiles) {
async function printFiles(fileList) {
try {
for (const file of legacyFiles) {
for (const file of fileList) {
console.log(path.resolve(file));
}
} catch (error) {
Expand All @@ -150,8 +150,14 @@ async function main() {

const processedLegacyFiles = await processLegacyFiles(filteredFiles, legacyFiles);

console.log('**MODIFIED FILES**');
await printFiles(modifiedFiles);

console.log('**FILTERED FILES**');
await printFiles(filteredFiles);

console.log('**LEGACY FILES**');
await printLegacyFiles(processedLegacyFiles);
await printFiles(processedLegacyFiles);

console.log('File processing complete.');
} catch (error) {
Expand Down

0 comments on commit be50a93

Please sign in to comment.