Suppress JS-0093, JS-0229, JS-0086 false positives

pull/51/head
tycrek 3 years ago
parent f7d87d2998
commit 3ab246e676
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -63,9 +63,9 @@ function doSetup() {
try { try {
const existingConfig = require('./config.json'); const existingConfig = require('./config.json');
Object.keys(existingConfig).forEach((key) => { Object.keys(existingConfig).forEach((key) => {
Object.prototype.hasOwnProperty.call(config, key) && (config[key] = existingConfig[key]); Object.prototype.hasOwnProperty.call(config, key) && (config[key] = existingConfig[key]); // skipcq: JS-0093
Object.prototype.hasOwnProperty.call(s3config, key) && (s3config[key] = existingConfig[key]); Object.prototype.hasOwnProperty.call(s3config, key) && (s3config[key] = existingConfig[key]); // skipcq: JS-0093
Object.prototype.hasOwnProperty.call(oldConfig, key) && (oldConfig[key] = existingConfig[key]); Object.prototype.hasOwnProperty.call(oldConfig, key) && (oldConfig[key] = existingConfig[key]); // skipcq: JS-0093
}); });
} catch (ex) { } catch (ex) {
if (ex.code !== 'MODULE_NOT_FOUND' && !ex.toString().includes('Unexpected end')) log.error(ex); if (ex.code !== 'MODULE_NOT_FOUND' && !ex.toString().includes('Unexpected end')) log.error(ex);
@ -195,8 +195,8 @@ function doSetup() {
.then((r) => results = r) // skipcq: JS-0086 .then((r) => results = r) // skipcq: JS-0086
// Check if using S3 // Check if using S3
.then(() => results.s3enabled ? prompt.get(s3schema) : s3config) .then(() => results.s3enabled ? prompt.get(s3schema) : s3config) // skipcq: JS-0229
.then((r) => Object.entries(r).forEach(([key, value]) => results[key] = value)) .then((r) => Object.entries(r).forEach(([key, value]) => results[key] = value)) // skipcq: JS-0086
// Verify information is correct // Verify information is correct
.then(() => log .then(() => log

Loading…
Cancel
Save