function validateLinks( links, options ) {
	var fopts;
	var opts;
	var err;
	var out;
	var db;
	if ( !isObjectArray( links ) ) {
		throw new TypeError( format( 'invalid argument. First argument must be an array of objects. Value: `%s`.', links ) );
	}
	opts = {
		'database': config.database
	};
	if ( arguments.length > 1 ) {
		err = validate( opts, options );
		if ( err ) {
			throw err;
		}
	}
	opts.database = resolve( cwd(), opts.database );
	fopts = {
		'encoding': 'utf8'
	};
	db = readJSON( opts.database, fopts );
	if ( instanceOf( db, Error ) ) {
		return db;
	}
	out = check( links, db );
	return out;
}
Synchronously validates an array of link objects against a link database.

@param {ObjectArray} links - array of link objects to validate
@param {Options} [options] - options
@param {string} [options.database] - path to a link database file (JSON)
@throws {TypeError} first argument must be an object array
@throws {TypeError} options argument must be an object
@throws {TypeError} must provide valid options
@returns {ObjectArray} array of validation errors

@example
var errors = validateLinks([
    {
        'id': 'gumbel-distibution',
        'url': 'https://en.wikipedia.org/wiki/Gumbel_distribution'
    }
]);
// returns [...]