@barecheck/scanner
Version:
Barecheck scanner to run static code analysis
20 lines (16 loc) • 465 B
JavaScript
const duplicationsConsoleReporter = require('../lib/reporters/console/duplications');
const reporterTypes = {
console: 'CONSOLE'
};
const buildDuplicationsReport = (reporterType, reporterOptions) => {
switch (reporterType) {
case reporterTypes.console:
return duplicationsConsoleReporter(reporterOptions);
default:
throw new Error(`${reporterType} is not defined`);
}
};
module.exports = {
reporterTypes,
buildDuplicationsReport
};