lib/configuration/check.js
function checkConfiguration(conf) {
    let failedChecks = 0;

    for (const path of Object.keys(CHECKS)) {
        // @todo avoid try..catch
        try {
            checkProperty(path, get(conf, path), CHECKS[path]);
        } catch (error) {
            LusterConfigurationError.ensureError(error).log();
            ++failedChecks;
        }
    }

    return failedChecks;
}
function checkConfiguration(conf) {
    let failedChecks = 0;

    for (const path of Object.keys(CHECKS)) {
        // @todo avoid try..catch
        try {
            checkProperty(path, get(conf, path), CHECKS[path]);
        } catch (error) {
            LusterConfigurationError.ensureError(error).log();
            ++failedChecks;
        }
    }

    return failedChecks;
}
function checkConfiguration ( conf ) { let failedChecks = 0 ; for ( const path of Object . keys ( CHECKS ) ) { // @todo avoid try..catch try { checkProperty ( path , get ( conf , path ) , CHECKS [ path ] ) ; } catch ( error ) { LusterConfigurationError . ensureError ( error ) . log ( ) ; ++ failedChecks ; } } return failedChecks ; }
Validate configuration object using descriptions from CHECKS const
@param {Object} conf configuration object
@returns {Number} of failed checks
Validate configuration object using descriptions from CHECKS const