oliverlorenz/repo-baseline-json-check-schema

View on GitHub

Showing 1 of 1 total issue

Function exports has 49 lines of code (exceeds 25 allowed). Consider refactoring.
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`));
Severity: Minor
Found in src/index.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language