Skip to content

Commit a61bc8c

Browse files
1 parent 74afd2d commit a61bc8c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/spectral/ipa/metrics/scripts/runMetricCollection.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ if (!fs.existsSync(config.defaultOutputsDir)) {
1313
console.log(`Output directory created successfully`);
1414
}
1515

16-
const result = spawnSync('spectral', ['lint', config.defaultOasFilePath, '--ruleset', config.defaultRulesetFilePath]);
16+
const result = spawnSync('spectral', [
17+
'lint',
18+
oasFilePath ? oasFilePath : config.defaultOasFilePath,
19+
'--ruleset',
20+
config.defaultRulesetFilePath,
21+
]);
1722

1823
if (result.error) {
1924
console.error('Error running Spectral lint:', result.error);

0 commit comments

Comments
 (0)