Showing 1 of 1 total issue
Function exports
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(pluginManager, repoPath, config) {
function _getAjvInstance(fileToCheck) {
const schemaVersion = fileToCheck.schemaVersion || 'draft-06'
const ajv = new Ajv(); // options can be passed, e.g. {allErrors: true}
ajv.addMetaSchema(require(`ajv/lib/refs/json-schema-${schemaVersion}.json`));