romanlex/app-manifest-webpack-plugin

View on GitHub

Showing 4 of 10 total issues

Function compileTemplate has 51 lines of code (exceeds 50 allowed). Consider refactoring.
Open

module.exports.compileTemplate = function compileTemplate(options, context, compilation) {
  const compilerPath = getCompilerPath(options.statsFilename, compilation.outputOptions.path)

  // The entry file is just an empty helper as the dynamic template
  // require is added in "loader.js"
Severity: Major
Found in lib/compiler.js - About 1 hr to fix

    Function emitCacheInformationFile has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    function emitCacheInformationFile(loader, query, cacheFile, fileHash, iconResult) {
    Severity: Minor
    Found in lib/cache.js - About 35 mins to fix

      Function generateIcons has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      function generateIcons(loader, imageFileStream, outputDir, originalQuery, callback) {
      Severity: Minor
      Found in lib/favicons.js - About 35 mins to fix

        Function loadIconsFromDiskCache has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        function loadIconsFromDiskCache(loader, query, cacheFile, fileHash, callback) {
        Severity: Minor
        Found in lib/cache.js - About 35 mins to fix
          Severity
          Category
          Status
          Source
          Language