build/convert-schemas.js
Function copySchemaFiles
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function copySchemaFiles() {
const resolvedSrcSchemaPaths = path.resolve(rootDir, srcSchemaPaths);
glob.sync(resolvedSrcSchemaPaths, void 0).forEach(function(filePath) {
let destSchemaPath = filePath.replace(/(\bsrc\b)(?!.*\1)/, destDir);