docs/config/processors/error-docs.js
Function errorDocsProcessor
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function errorDocsProcessor(log, errorNamespaceMap, getMinerrInfo) {
return {
$runAfter: ['tags-extracted'],
$runBefore: ['extra-docs-added'],
$process: function(docs) {
Function $process
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$process: function(docs) {
// Get the extracted min errors to compare with the error docs, and report any mismatch
var collectedErrors = require('../../../build/errors.json').errors;
var flatErrors = [];