We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a61bc8c commit a91cb50Copy full SHA for a91cb50
tools/spectral/ipa/metrics/scripts/runMetricCollection.js
@@ -13,6 +13,16 @@ if (!fs.existsSync(config.defaultOutputsDir)) {
13
console.log(`Output directory created successfully`);
14
}
15
16
+if (!fs.existsSync(config.defaultRulesetFilePath)) {
17
+ console.error('Could not find ruleset file path', config.defaultRulesetFilePath);
18
+ process.exit(1);
19
+}
20
+
21
+if (!oasFilePath && !fs.existsSync(config.defaultOasFilePath)) {
22
+ console.error('Could not find default OAS file path', config.defaultOasFilePath);
23
24
25
26
const result = spawnSync('spectral', [
27
'lint',
28
oasFilePath ? oasFilePath : config.defaultOasFilePath,
0 commit comments