goreutils/gore-gulp

View on GitHub

Showing 7 of 7 total issues

Function setup has 105 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function setup(variant) {
  [
    {
      expectFiles: [
        'test-library-1.module.min.js',
Severity: Major
Found in src/__tests__/webpack/common.js - About 4 hrs to fix

    Function groupEntries has 41 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function groupEntries(config, pckg) {
      return Promise.all(map(libDirs(pckg), libDir => {
        const pattern = path.resolve(
          config.baseDir,
          libDir,
    Severity: Minor
    Found in webpack/index.js - About 1 hr to fix

      Function createVariant has 36 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function createVariant(variant) {
        return function webpack(config, pckg) {
          const runnerPath = require.resolve(path.resolve(__dirname, 'forkableRunner'));
          const workers = workerFarm(runnerPath);
      
      
      Severity: Minor
      Found in webpack/index.js - About 1 hr to fix

        Function webpack has 34 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          return function webpack(config, pckg) {
            const runnerPath = require.resolve(path.resolve(__dirname, 'forkableRunner'));
            const workers = workerFarm(runnerPath);
        
            return groupEntries(config, pckg)
        Severity: Minor
        Found in webpack/index.js - About 1 hr to fix

          Function constructor has 31 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            constructor(configBuilder, pckgPromise) {
              const useAva = configBuilder.config.get('useAva');
          
              this.tasks = {
                format: createTask(configBuilder, pckgPromise, [
          Severity: Minor
          Found in src/GulpManager.js - About 1 hr to fix

            Function babel has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function babel(config, pckg) {
              const cacheIdentifier = gorePckg.name + gorePckg.version + pckg.name + pckg.version;
              const cacheDirectory = path.resolve(os.tmpdir(), cacheIdentifier);
            
              return Promise.resolve(merge({}, {
            Severity: Minor
            Found in webpack/config/babel.js - About 1 hr to fix

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

              function normalizeEntry(config, pckg, libDir, entry, fileExtensions) {
              Severity: Minor
              Found in webpack/index.js - About 35 mins to fix
                Severity
                Category
                Status
                Source
                Language