lolibrary/lolibrary

View on GitHub
web.sakura/nova-components/ImageArray/dist/js/field.js

Summary

Maintainability
F
1 mo
Test Coverage

File field.js has 5482 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/******/ (function(modules) { // webpackBootstrap
/******/     // The module cache
/******/     var installedModules = {};
/******/
/******/     // The require function
Severity: Major
Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 2 wks to fix

    Function Form has 201 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    var Form = function () {
        /**
         * Create a new Form instance.
         *
         * @param {object} data
    Severity: Major
    Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 day to fix

      Function xhrAdapter has 106 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      module.exports = function xhrAdapter(config) {
        return new Promise(function dispatchXhrRequest(resolve, reject) {
          var requestData = config.data;
          var requestHeaders = config.headers;
      
      
      Severity: Major
      Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 4 hrs to fix

        Function dispatchXhrRequest has 104 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          return new Promise(function dispatchXhrRequest(resolve, reject) {
            var requestData = config.data;
            var requestHeaders = config.headers;
        
            if (utils.isFormData(requestData)) {
        Severity: Major
        Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 4 hrs to fix

          Function debounce has 95 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function debounce(func, wait, options) {
            var lastArgs,
                lastThis,
                maxWait,
                result,
          Severity: Major
          Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 3 hrs to fix

            Consider simplifying this complex logical expression.
            Open

                if ((inherited || hasOwnProperty.call(value, key)) &&
                    !(skipIndexes && (
                       // Safari 9 has enumerable `arguments.length` in strict mode.
                       key == 'length' ||
                       // Node.js 0.10 has enumerable non-index properties on buffers.
            Severity: Critical
            Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 2 hrs to fix

              Function normalizeComponent has 64 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              module.exports = function normalizeComponent (
                rawScriptExports,
                compiledTemplate,
                functionalTemplate,
                injectStyles,
              Severity: Major
              Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 2 hrs to fix

                Function Errors has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                var Errors = function () {
                    /**
                     * Create a new Errors instance.
                     */
                    function Errors() {
                Severity: Major
                Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 2 hrs to fix

                  Function makeInvokeMethod has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    function makeInvokeMethod(innerFn, self, context) {
                      var state = GenStateSuspendedStart;
                  
                      return function invoke(method, arg) {
                        if (state === GenStateExecuting) {
                  Severity: Major
                  Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 2 hrs to fix

                    Function invoke has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        return function invoke(method, arg) {
                          if (state === GenStateExecuting) {
                            throw new Error("Generator is already running");
                          }
                    
                    
                    Severity: Minor
                    Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 2 hrs to fix

                      Function exports has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      module.exports = function () {
                        var head, last, notify;
                      
                        var flush = function () {
                          var parent, fn;
                      Severity: Minor
                      Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

                        Function exports has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
                          $iterCreate(Constructor, NAME, next);
                          var getMethod = function (kind) {
                            if (!BUGGY && kind in proto) return proto[kind];
                            switch (kind) {
                        Severity: Minor
                        Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

                          Function maybeInvokeDelegate has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            function maybeInvokeDelegate(delegate, context) {
                              var method = delegate.iterator[context.method];
                              if (method === undefined) {
                                // A .throw or .return when the delegate iterator has no .throw
                                // method always terminates the yield* loop.
                          Severity: Minor
                          Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

                            Function notify has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            var notify = function (promise, isReject) {
                              if (promise._n) return;
                              promise._n = true;
                              var chain = promise._c;
                              microtask(function () {
                            Severity: Minor
                            Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

                              Function dispatchRequest has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              module.exports = function dispatchRequest(config) {
                                throwIfCancellationRequested(config);
                              
                                // Support baseURL config
                                if (config.baseURL && !isAbsoluteURL(config.url)) {
                              Severity: Minor
                              Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

                                Function dispatchException has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    dispatchException: function(exception) {
                                      if (this.done) {
                                        throw exception;
                                      }
                                
                                
                                Severity: Minor
                                Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

                                  Function render has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  var render = function() {
                                    var _vm = this
                                    var _h = _vm.$createElement
                                    var _c = _vm._self._c || _h
                                    return _c(
                                  Severity: Minor
                                  Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

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

                                      function AsyncIterator(generator) {
                                        function invoke(method, arg, resolve, reject) {
                                          var record = tryCatch(generator[method], generator, arg);
                                          if (record.type === "throw") {
                                            reject(record.arg);
                                    Severity: Minor
                                    Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

                                      Function $export has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      var $export = function (type, name, source) {
                                        var IS_FORCED = type & $export.F;
                                        var IS_GLOBAL = type & $export.G;
                                        var IS_STATIC = type & $export.S;
                                        var IS_PROTO = type & $export.P;
                                      Severity: Minor
                                      Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

                                        Function clearSelectedFilters has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            clearSelectedFilters: function () {
                                              var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(lens) {
                                                var _updateQueryString;
                                        
                                                return _regenerator2.default.wrap(function _callee$(_context) {
                                        Severity: Minor
                                        Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

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

                                          module.exports = function buildURL(url, params, paramsSerializer) {
                                            /*eslint no-param-reassign:0*/
                                            if (!params) {
                                              return url;
                                            }
                                          Severity: Minor
                                          Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

                                            Function _callee has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                            Open

                                                  var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(lens) {
                                                    var _updateQueryString;
                                            
                                                    return _regenerator2.default.wrap(function _callee$(_context) {
                                                      while (1) {
                                            Severity: Minor
                                            Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

                                              Function initializeState has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                              Open

                                                  initializeState: function () {
                                                    var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(lens) {
                                                      return _regenerator2.default.wrap(function _callee3$(_context3) {
                                                        while (1) {
                                                          switch (_context3.prev = _context3.next) {
                                              Severity: Minor
                                              Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

                                                Function run has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                Open

                                                    var run = function (reaction) {
                                                      var handler = ok ? reaction.ok : reaction.fail;
                                                      var resolve = reaction.resolve;
                                                      var reject = reaction.reject;
                                                      var domain = reaction.domain;
                                                Severity: Minor
                                                Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

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

                                                      ordinalize: function(str) {
                                                          var str_arr = str.split(' ');
                                                          for (var x = 0; x < str_arr.length; x++)
                                                          {
                                                              var i = parseInt(str_arr[x]);
                                                  Severity: Minor
                                                  Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

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

                                                      (function standardBrowserEnv() {
                                                        var msie = /(msie|trident)/i.test(navigator.userAgent);
                                                        var urlParsingNode = document.createElement('a');
                                                        var originURL;
                                                    
                                                    
                                                    Severity: Minor
                                                    Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

                                                      Function fetchCards has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                      Open

                                                              fetchCards: function () {
                                                                  var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee() {
                                                                      var _ref2, cards;
                                                      
                                                                      return _regenerator2.default.wrap(function _callee$(_context) {
                                                      Severity: Minor
                                                      Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

                                                        Function _callee$ has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                        Open

                                                                return _regenerator2.default.wrap(function _callee$(_context) {
                                                                  while (1) {
                                                                    switch (_context.prev = _context.next) {
                                                                      case 0:
                                                                        if (!lens) {
                                                        Severity: Minor
                                                        Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

                                                          Function standardBrowserEnv has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                          Open

                                                            (function standardBrowserEnv() {
                                                              return {
                                                                write: function write(name, value, expires, path, domain, secure) {
                                                                  var cookie = [];
                                                                  cookie.push(name + '=' + encodeURIComponent(value));
                                                          Severity: Minor
                                                          Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 1 hr to fix

                                                            Function exports has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                                            Open

                                                            module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
                                                            Severity: Major
                                                            Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 50 mins to fix

                                                              Avoid deeply nested control flow statements.
                                                              Open

                                                                          if (this.prev < entry.catchLoc) {
                                                                            return handle(entry.catchLoc, true);
                                                                          }
                                                              Severity: Major
                                                              Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 45 mins to fix

                                                                Avoid deeply nested control flow statements.
                                                                Open

                                                                          } else if (hasFinally) {
                                                                            if (this.prev < entry.finallyLoc) {
                                                                              return handle(entry.finallyLoc);
                                                                            }
                                                                
                                                                
                                                                Severity: Major
                                                                Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 45 mins to fix

                                                                  Function exports has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                  Open

                                                                    rawScriptExports,
                                                                    compiledTemplate,
                                                                    functionalTemplate,
                                                                    injectStyles,
                                                                    scopeId,
                                                                  Severity: Minor
                                                                  Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 45 mins to fix

                                                                    Function write has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                    Open

                                                                          write: function write(name, value, expires, path, domain, secure) {
                                                                    Severity: Minor
                                                                    Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 45 mins to fix

                                                                      Consider simplifying this complex logical expression.
                                                                      Open

                                                                        if (moduleIdentifier) { // server build
                                                                          hook = function (context) {
                                                                            // 2.3 injection
                                                                            context =
                                                                              context || // cached call
                                                                      Severity: Major
                                                                      Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 40 mins to fix

                                                                        Consider simplifying this complex logical expression.
                                                                        Open

                                                                            if (utils.isFormData(data) ||
                                                                              utils.isArrayBuffer(data) ||
                                                                              utils.isBuffer(data) ||
                                                                              utils.isStream(data) ||
                                                                              utils.isFile(data) ||
                                                                        Severity: Major
                                                                        Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 40 mins to fix

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

                                                                          module.exports = function createError(message, config, code, request, response) {
                                                                          Severity: Minor
                                                                          Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 35 mins to fix

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

                                                                            module.exports = function enhanceError(error, config, code, request, response) {
                                                                            Severity: Minor
                                                                            Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 35 mins to fix

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

                                                                              var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
                                                                              Severity: Minor
                                                                              Found in web.sakura/nova-components/ImageArray/dist/js/field.js - About 35 mins to fix

                                                                                Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                Open

                                                                                /******/     function __webpack_require__(moduleId) {
                                                                                /******/
                                                                                /******/         // Check if module is in cache
                                                                                /******/         if(installedModules[moduleId]) {
                                                                                /******/             return installedModules[moduleId].exports;
                                                                                Severity: Major
                                                                                Found in web.sakura/nova-components/ImageArray/dist/js/field.js and 1 other location - About 7 hrs to fix
                                                                                web.sakura/nova-components/ImageArray/dist/js/field.js on lines 480..501

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 175.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                Open

                                                                                /******/     function __webpack_require__(moduleId) {
                                                                                /******/
                                                                                /******/         // Check if module is in cache
                                                                                /******/         if(installedModules[moduleId]) {
                                                                                /******/             return installedModules[moduleId].exports;
                                                                                Severity: Major
                                                                                Found in web.sakura/nova-components/ImageArray/dist/js/field.js and 1 other location - About 7 hrs to fix
                                                                                web.sakura/nova-components/ImageArray/dist/js/field.js on lines 6..27

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 175.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                Open

                                                                                var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
                                                                                Severity: Major
                                                                                Found in web.sakura/nova-components/ImageArray/dist/js/field.js and 1 other location - About 6 hrs to fix
                                                                                web.sakura/nova-components/ImageArray/dist/js/field.js on lines 6647..6647

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 171.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                Open

                                                                                var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
                                                                                Severity: Major
                                                                                Found in web.sakura/nova-components/ImageArray/dist/js/field.js and 1 other location - About 6 hrs to fix
                                                                                web.sakura/nova-components/ImageArray/dist/js/field.js on lines 2579..2579

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 171.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                Open

                                                                                /******/     __webpack_require__.n = function(module) {
                                                                                /******/         var getter = module && module.__esModule ?
                                                                                /******/             function getDefault() { return module['default']; } :
                                                                                /******/             function getModuleExports() { return module; };
                                                                                /******/         __webpack_require__.d(getter, 'a', getter);
                                                                                Severity: Major
                                                                                Found in web.sakura/nova-components/ImageArray/dist/js/field.js and 1 other location - About 3 hrs to fix
                                                                                web.sakura/nova-components/ImageArray/dist/js/field.js on lines 525..531

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 104.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                Open

                                                                                /******/     __webpack_require__.n = function(module) {
                                                                                /******/         var getter = module && module.__esModule ?
                                                                                /******/             function getDefault() { return module['default']; } :
                                                                                /******/             function getModuleExports() { return module; };
                                                                                /******/         __webpack_require__.d(getter, 'a', getter);
                                                                                Severity: Major
                                                                                Found in web.sakura/nova-components/ImageArray/dist/js/field.js and 1 other location - About 3 hrs to fix
                                                                                web.sakura/nova-components/ImageArray/dist/js/field.js on lines 48..54

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 104.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                Open

                                                                                /******/     __webpack_require__.d = function(exports, name, getter) {
                                                                                /******/         if(!__webpack_require__.o(exports, name)) {
                                                                                /******/             Object.defineProperty(exports, name, {
                                                                                /******/                 configurable: false,
                                                                                /******/                 enumerable: true,
                                                                                Severity: Major
                                                                                Found in web.sakura/nova-components/ImageArray/dist/js/field.js and 1 other location - About 2 hrs to fix
                                                                                web.sakura/nova-components/ImageArray/dist/js/field.js on lines 37..45

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 92.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                Open

                                                                                /******/     __webpack_require__.d = function(exports, name, getter) {
                                                                                /******/         if(!__webpack_require__.o(exports, name)) {
                                                                                /******/             Object.defineProperty(exports, name, {
                                                                                /******/                 configurable: false,
                                                                                /******/                 enumerable: true,
                                                                                Severity: Major
                                                                                Found in web.sakura/nova-components/ImageArray/dist/js/field.js and 1 other location - About 2 hrs to fix
                                                                                web.sakura/nova-components/ImageArray/dist/js/field.js on lines 514..522

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 92.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                Open

                                                                                /******/     __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
                                                                                Severity: Minor
                                                                                Found in web.sakura/nova-components/ImageArray/dist/js/field.js and 1 other location - About 40 mins to fix
                                                                                web.sakura/nova-components/ImageArray/dist/js/field.js on lines 534..534

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 48.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                Open

                                                                                /******/     __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
                                                                                Severity: Minor
                                                                                Found in web.sakura/nova-components/ImageArray/dist/js/field.js and 1 other location - About 40 mins to fix
                                                                                web.sakura/nova-components/ImageArray/dist/js/field.js on lines 57..57

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 48.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                Open

                                                                                      var localized = moment.tz(field.value, Nova.config.timezone).clone().tz(this.userTimezone);
                                                                                Severity: Minor
                                                                                Found in web.sakura/nova-components/ImageArray/dist/js/field.js and 1 other location - About 35 mins to fix
                                                                                web.sakura/nova-components/ImageArray/dist/js/field.js on lines 3952..3952

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 47.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                Open

                                                                                      var localized = moment.tz(field.value, Nova.config.timezone).clone().tz(this.userTimezone);
                                                                                Severity: Minor
                                                                                Found in web.sakura/nova-components/ImageArray/dist/js/field.js and 1 other location - About 35 mins to fix
                                                                                web.sakura/nova-components/ImageArray/dist/js/field.js on lines 3970..3970

                                                                                Duplicated Code

                                                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                Tuning

                                                                                This issue has a mass of 47.

                                                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                Refactorings

                                                                                Further Reading

                                                                                There are no issues that match your filters.

                                                                                Category
                                                                                Status