acsone/alfodoo

View on GitHub

Showing 321 of 538 total issues

Function parseResource has 85 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function parseResource(href, lang, successCallback, failureCallback) {
    var baseURL = href.replace(/[^\/]*$/, '') || './';
    function evalString(text) {
      if (text.lastIndexOf('\\') < 0) return text;
      return text.replace(/\\\\/g, '\\').replace(/\\n/g, '\n').replace(/\\r/g, '\r').replace(/\\t/g, '\t').replace(/\\b/g, '\b').replace(/\\f/g, '\f').replace(/\\{/g, '{').replace(/\\}/g, '}').replace(/\\"/g, '"').replace(/\\'/g, "'");
Severity: Major
Found in cmis_web/static/lib/pdfjs-1.9.426/web/odoo-viewer.js - About 3 hrs to fix

    Function register_content_events has 85 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        register_content_events: function(){
             var self = this;
             var datatable_container =this.$el.find('.dataTables_scrollBody');
             datatable_container.off('dragleave dragend drop dragover dragenter drop');
             if (self.dislayed_folder_cmisobject && self.dislayed_folder_cmisobject.allowableActions['canCreateDocument']){
    Severity: Major
    Found in cmis_web/static/src/js/form_widgets.js - About 3 hrs to fix

      Function parseResource has 85 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        function parseResource(href, lang, successCallback, failureCallback) {
          var baseURL = href.replace(/[^\/]*$/, '') || './';
          function evalString(text) {
            if (text.lastIndexOf('\\') < 0) return text;
            return text.replace(/\\\\/g, '\\').replace(/\\n/g, '\n').replace(/\\r/g, '\r').replace(/\\t/g, '\t').replace(/\\b/g, '\b').replace(/\\f/g, '\f').replace(/\\{/g, '{').replace(/\\}/g, '}').replace(/\\"/g, '"').replace(/\\'/g, "'");
      Severity: Major
      Found in cmis_web/static/lib/pdfjs-1.9.426/web/viewer.js - About 3 hrs to fix

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

            get_datatable_config: function(){
                var l10n = _t.database.parameters;
                var self = this;
                var config = {
                    searching:      false,
        Severity: Major
        Found in cmis_web/static/src/js/form_widgets.js - About 3 hrs to fix

          Function StepperManagerClosure has 80 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          var StepperManager = (function StepperManagerClosure() {
            var steppers = [];
            var stepperDiv = null;
            var stepperControls = null;
            var stepperChooser = null;
          Severity: Major
          Found in cmis_web/static/lib/pdfjs-1.9.426/web/debugger.js - About 3 hrs to fix

            Function setHash has 79 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                value: function setHash(hash) {
                  var pageNumber = void 0,
                      dest = void 0;
                  if (hash.indexOf('=') >= 0) {
                    var params = (0, _ui_utils.parseQueryString)(hash);
            Severity: Major
            Found in cmis_web/static/lib/pdfjs-1.9.426/web/odoo-viewer.js - About 3 hrs to fix

              Function setHash has 79 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  value: function setHash(hash) {
                    var pageNumber = void 0,
                        dest = void 0;
                    if (hash.indexOf('=') >= 0) {
                      var params = (0, _ui_utils.parseQueryString)(hash);
              Severity: Major
              Found in cmis_web/static/lib/pdfjs-1.9.426/web/viewer.js - About 3 hrs to fix

                Function paintOnCanvas has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    value: function paintOnCanvas(canvasWrapper) {
                      var renderCapability = (0, _pdfjsLib.createPromiseCapability)();
                      var result = {
                        promise: renderCapability.promise,
                        onRenderContinue: function onRenderContinue(cont) {
                Severity: Major
                Found in cmis_web/static/lib/pdfjs-1.9.426/web/odoo-viewer.js - About 3 hrs to fix

                  Function paintOnCanvas has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      value: function paintOnCanvas(canvasWrapper) {
                        var renderCapability = (0, _pdfjsLib.createPromiseCapability)();
                        var result = {
                          promise: renderCapability.promise,
                          onRenderContinue: function onRenderContinue(cont) {
                  Severity: Major
                  Found in cmis_web/static/lib/pdfjs-1.9.426/web/viewer.js - About 3 hrs to fix

                    Function renderMatches has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        value: function renderMatches(matches) {
                          if (matches.length === 0) {
                            return;
                          }
                          var textContentItemsStr = this.textContentItemsStr;
                    Severity: Major
                    Found in cmis_web/static/lib/pdfjs-1.9.426/web/odoo-viewer.js - About 2 hrs to fix

                      Function ProgressBar has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      var ProgressBar = function () {
                        function ProgressBar(id) {
                          var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
                              height = _ref.height,
                              width = _ref.width,
                      Severity: Major
                      Found in cmis_web/static/lib/pdfjs-1.9.426/web/odoo-viewer.js - About 2 hrs to fix

                        Function ProgressBar has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        var ProgressBar = function () {
                          function ProgressBar(id) {
                            var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
                                height = _ref.height,
                                width = _ref.width,
                        Severity: Major
                        Found in cmis_web/static/lib/pdfjs-1.9.426/web/viewer.js - About 2 hrs to fix

                          Function renderMatches has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              value: function renderMatches(matches) {
                                if (matches.length === 0) {
                                  return;
                                }
                                var textContentItemsStr = this.textContentItemsStr;
                          Severity: Major
                          Found in cmis_web/static/lib/pdfjs-1.9.426/web/viewer.js - About 2 hrs to fix

                            Function SecondaryToolbar has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              function SecondaryToolbar(options, mainContainer, eventBus) {
                                _classCallCheck(this, SecondaryToolbar);
                            
                                this.toolbar = options.toolbar;
                                this.toggleButton = options.toggleButton;
                            Severity: Major
                            Found in cmis_web/static/lib/pdfjs-1.9.426/web/odoo-viewer.js - About 2 hrs to fix

                              Function SecondaryToolbar has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                function SecondaryToolbar(options, mainContainer, eventBus) {
                                  _classCallCheck(this, SecondaryToolbar);
                              
                                  this.toolbar = options.toolbar;
                                  this.toggleButton = options.toggleButton;
                              Severity: Major
                              Found in cmis_web/static/lib/pdfjs-1.9.426/web/viewer.js - About 2 hrs to fix

                                Function 1 has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.superagent = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
                                
                                /**
                                 * Expose `Emitter`.
                                 */
                                Severity: Major
                                Found in cmis_web/static/lib/cmisjs/superagent.7.2.0.js - About 2 hrs to fix

                                  Function updateOperatorList has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      updateOperatorList: function updateOperatorList(operatorList) {
                                        var self = this;
                                  
                                        function cboxOnClick() {
                                          var x = +this.dataset.idx;
                                  Severity: Major
                                  Found in cmis_web/static/lib/pdfjs-1.9.426/web/debugger.js - About 2 hrs to fix

                                    Function PasswordPrompt has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    var PasswordPrompt = function () {
                                      function PasswordPrompt(options, overlayManager) {
                                        var _this = this;
                                    
                                        var l10n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _ui_utils.NullL10n;
                                    Severity: Major
                                    Found in cmis_web/static/lib/pdfjs-1.9.426/web/odoo-viewer.js - About 2 hrs to fix

                                      Function PasswordPrompt has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      var PasswordPrompt = function () {
                                        function PasswordPrompt(options, overlayManager) {
                                          var _this = this;
                                      
                                          var l10n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _ui_utils.NullL10n;
                                      Severity: Major
                                      Found in cmis_web/static/lib/pdfjs-1.9.426/web/viewer.js - About 2 hrs to fix

                                        Function open has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          open: function open(file, args) {
                                            var _this3 = this;
                                        
                                            if (arguments.length > 2 || typeof args === 'number') {
                                              return Promise.reject(new Error('Call of open() with obsolete signature.'));
                                        Severity: Major
                                        Found in cmis_web/static/lib/pdfjs-1.9.426/web/odoo-viewer.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language