luhmann/hired

View on GitHub
scripts/build.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function build has 84 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function build(previousFileSizes) {
  console.log('Creating an optimized production build...');
  webpack(config).run((err, stats) => {
    if (err) {
      printErrors('Failed to compile.', [err]);
Severity: Major
Found in scripts/build.js - About 3 hrs to fix

    Function printErrors has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function printErrors(summary, errors) {
      console.log(chalk.red(summary));
      console.log();
      errors.forEach(err => {
        let linePointer;
    Severity: Minor
    Found in scripts/build.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status