Skip to content

Commit 8f33f03

Browse files
fix: explicitly flush to file
1 parent d6aed8f commit 8f33f03

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/spectral/ipa/metrics/metricCollection.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
merge,
1010
} from './utils.js';
1111
import config from './config.js';
12+
import collector from './collector.js';
1213
const { Spectral } = spectral;
1314

1415
async function runMetricCollectionJob(oasFilePath = config.defaultOasFilePath) {
@@ -28,6 +29,7 @@ async function runMetricCollectionJob(oasFilePath = config.defaultOasFilePath) {
2829

2930
console.log('Running Spectral analysis...');
3031
const spectralResults = await spectral.run(oasContent);
32+
collector.flushToFile();
3133

3234
console.log('Loading collector results...');
3335
const collectorResults = loadCollectorResults(config.defaultCollectorResultsFilePath);

0 commit comments

Comments
 (0)