lib/utils/rule-inspector.js
function(options, listItemsSchema) {
        let validateOptionsList = SchemaValidator.compile({
            type: "array",
            minItems: listItemsSchema.length,
            additionalItems: false,
            items: listItemsSchema
        });

        return validateOptionsList(options);
    }
function(options, listItemsSchema) {
        let validateOptionsList = SchemaValidator.compile({
            type: "array",
            minItems: listItemsSchema.length,
            additionalItems: false,
            items: listItemsSchema
        });

        return validateOptionsList(options);
    }
Determine whether the options object supplied is valid according to the schema passed.
@param {Array} options List of options
@param {Array} listItemsSchema A list of schema objects defining schema for every item in the options list.
@returns {Boolean} isValid True if options list is valid, false otherwise.