acsone/alfodoo

View on GitHub

Showing 321 of 538 total issues

File odoo-viewer.js has 9429 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* Copyright 2017 Mozilla Foundation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
Severity: Major
Found in cmis_web/static/lib/pdfjs-1.9.426/web/odoo-viewer.js - About 3 wks to fix

    File viewer.js has 9421 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /* Copyright 2017 Mozilla Foundation
     *
     * Licensed under the Apache License, Version 2.0 (the "License");
     * you may not use this file except in compliance with the License.
     * You may obtain a copy of the License at
    Severity: Major
    Found in cmis_web/static/lib/pdfjs-1.9.426/web/viewer.js - About 3 wks to fix

      Function createSession has 768 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        lib.createSession = function (url) {
      
          /**
           * @class CmisSession
           *
      Severity: Major
      Found in cmis_web/static/lib/cmisjs/cmis.0.3.1.js - About 3 days to fix

        Function webL10n has 724 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        document.webL10n = function (window, document, undefined) {
          var gL10nData = {};
          var gTextData = '';
          var gTextProp = 'textContent';
          var gLanguage = '';
        Severity: Major
        Found in cmis_web/static/lib/pdfjs-1.9.426/web/odoo-viewer.js - About 3 days to fix

          Function PDFViewer has 724 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          var PDFViewer = function () {
            function PDFViewer(options) {
              _classCallCheck(this, PDFViewer);
          
              this.container = options.container;
          Severity: Major
          Found in cmis_web/static/lib/pdfjs-1.9.426/web/odoo-viewer.js - About 3 days to fix

            Function webL10n has 724 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            document.webL10n = function (window, document, undefined) {
              var gL10nData = {};
              var gTextData = '';
              var gTextProp = 'textContent';
              var gLanguage = '';
            Severity: Major
            Found in cmis_web/static/lib/pdfjs-1.9.426/web/viewer.js - About 3 days to fix

              Function PDFViewer has 724 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              var PDFViewer = function () {
                function PDFViewer(options) {
                  _classCallCheck(this, PDFViewer);
              
                  this.container = options.container;
              Severity: Major
              Found in cmis_web/static/lib/pdfjs-1.9.426/web/viewer.js - About 3 days to fix

                File form_widgets.js has 1249 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /*---------------------------------------------------------
                 + * Odoo cmis_web
                 + * Author  Laurent Mignon 2016 Acsone SA/NV
                 + * License in __openerp__.py at root level of the module
                 + *---------------------------------------------------------
                Severity: Major
                Found in cmis_web/static/src/js/form_widgets.js - About 3 days to fix

                  Function PDFPageView has 488 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  var PDFPageView = function () {
                    function PDFPageView(options) {
                      _classCallCheck(this, PDFPageView);
                  
                      var container = options.container;
                  Severity: Major
                  Found in cmis_web/static/lib/pdfjs-1.9.426/web/odoo-viewer.js - About 2 days to fix

                    Function PDFPageView has 488 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    var PDFPageView = function () {
                      function PDFPageView(options) {
                        _classCallCheck(this, PDFPageView);
                    
                        var container = options.container;
                    Severity: Major
                    Found in cmis_web/static/lib/pdfjs-1.9.426/web/viewer.js - About 2 days to fix

                      Function 3 has 458 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      },{}],3:[function(require,module,exports){
                      /**
                       * Module dependencies.
                       */
                      
                      
                      Severity: Major
                      Found in cmis_web/static/lib/cmisjs/superagent.7.2.0.js - About 2 days to fix

                        File cmis.0.3.1.js has 794 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        ;
                        (function (root, factory) {
                          'use strict';
                          if (typeof define === 'function' && define.amd) {
                            define(['superagent'], function (superagent) {
                        Severity: Major
                        Found in cmis_web/static/lib/cmisjs/cmis.0.3.1.js - About 1 day to fix

                          Function PDFFindController has 367 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          var PDFFindController = function () {
                            function PDFFindController(_ref) {
                              var pdfViewer = _ref.pdfViewer;
                          
                              _classCallCheck(this, PDFFindController);
                          Severity: Major
                          Found in cmis_web/static/lib/pdfjs-1.9.426/web/odoo-viewer.js - About 1 day to fix

                            Function PDFFindController has 367 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            var PDFFindController = function () {
                              function PDFFindController(_ref) {
                                var pdfViewer = _ref.pdfViewer;
                            
                                _classCallCheck(this, PDFFindController);
                            Severity: Major
                            Found in cmis_web/static/lib/pdfjs-1.9.426/web/viewer.js - About 1 day to fix

                              Function PDFPresentationMode has 352 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              var PDFPresentationMode = function () {
                                function PDFPresentationMode(_ref) {
                                  var _this = this;
                              
                                  var container = _ref.container,
                              Severity: Major
                              Found in cmis_web/static/lib/pdfjs-1.9.426/web/odoo-viewer.js - About 1 day to fix

                                Function PDFPresentationMode has 352 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                var PDFPresentationMode = function () {
                                  function PDFPresentationMode(_ref) {
                                    var _this = this;
                                
                                    var container = _ref.container,
                                Severity: Major
                                Found in cmis_web/static/lib/pdfjs-1.9.426/web/viewer.js - About 1 day to fix

                                  Function getPluralRules has 321 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    function getPluralRules(lang) {
                                      var locales2rules = {
                                        'af': 3,
                                        'ak': 4,
                                        'am': 4,
                                  Severity: Major
                                  Found in cmis_web/static/lib/pdfjs-1.9.426/web/odoo-viewer.js - About 1 day to fix

                                    Function getPluralRules has 321 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      function getPluralRules(lang) {
                                        var locales2rules = {
                                          'af': 3,
                                          'ak': 4,
                                          'am': 4,
                                    Severity: Major
                                    Found in cmis_web/static/lib/pdfjs-1.9.426/web/viewer.js - About 1 day to fix

                                      Function PDFSidebar has 307 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

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

                                        Function PDFSidebar has 307 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        var PDFSidebar = function () {
                                          function PDFSidebar(options) {
                                            var l10n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _ui_utils.NullL10n;
                                        
                                            _classCallCheck(this, PDFSidebar);
                                        Severity: Major
                                        Found in cmis_web/static/lib/pdfjs-1.9.426/web/viewer.js - About 1 day to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language