kisenka/svg-sprite-loader

View on GitHub
lib/plugin.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function apply has 77 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  apply(compiler) {
    this.rules = getMatchedRule(compiler);

    const path = this.rules.outputPath ? this.rules.outputPath : this.rules.publicPath;
    this.filenamePrefix = path
Severity: Major
Found in lib/plugin.js - About 3 hrs to fix

    TODO found
    Open

      // TODO optimize MappedList instantiation in each hook
    Severity: Minor
    Found in lib/plugin.js by fixme

    TODO found
    Open

            // TODO refactor
    Severity: Minor
    Found in lib/plugin.js by fixme

    There are no issues that match your filters.

    Category
    Status