Plate-Project/plate

View on GitHub

Showing 345 of 549 total issues

Function DutchStemmer has 327 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        st = new function DutchStemmer() {
          var a_0 = [new Among("", -1, 6), new Among("\u00E1", 0, 1),
              new Among("\u00E4", 0, 1), new Among("\u00E9", 0, 2),
              new Among("\u00EB", 0, 2), new Among("\u00ED", 0, 3),
              new Among("\u00EF", 0, 3), new Among("\u00F3", 0, 4),
Severity: Major
Found in plate/static/js/lunr/lunr.du.js - About 1 day to fix

    File underscore-1.3.1.js has 665 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    //     Underscore.js 1.3.1
    //     (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
    //     Underscore is freely distributable under the MIT license.
    //     Portions of Underscore are inspired or borrowed from Prototype,
    //     Oliver Steele's Functional, and John Resig's Micro-Templating.
    Severity: Major
    Found in doc/build/html/_static/underscore-1.3.1.js - About 1 day to fix

      File websupport.js has 638 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*
       * websupport.js
       * ~~~~~~~~~~~~~
       *
       * sphinx.websupport utilities for all documentation.
      Severity: Major
      Found in doc/build/html/_static/websupport.js - About 1 day to fix

        Function stemmer has 276 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            lunr.ru.stemmer = (function() {
              /* create the wrapped stemmer object */
              var Among = lunr.stemmerSupport.Among,
                SnowballProgram = lunr.stemmerSupport.SnowballProgram,
                st = new function RussianStemmer() {
        Severity: Major
        Found in plate/static/js/lunr/lunr.ru.js - About 1 day to fix

          Function stemmer has 275 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              lunr.de.stemmer = (function() {
                /* create the wrapped stemmer object */
                var Among = lunr.stemmerSupport.Among,
                  SnowballProgram = lunr.stemmerSupport.SnowballProgram,
                  st = new function GermanStemmer() {
          Severity: Major
          Found in plate/static/js/lunr/lunr.de.js - About 1 day to fix

            File lunr.fr.js has 623 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /*!
             * Lunr languages, `French` language
             * https://github.com/MihaiValentin/lunr-languages
             *
             * Copyright 2014, Mihai Valentin
            Severity: Major
            Found in plate/static/js/lunr/lunr.fr.js - About 1 day to fix

              Function RussianStemmer has 267 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      st = new function RussianStemmer() {
                        var a_0 = [new Among("\u0432", -1, 1), new Among("\u0438\u0432", 0, 2),
                            new Among("\u044B\u0432", 0, 2),
                            new Among("\u0432\u0448\u0438", -1, 1),
                            new Among("\u0438\u0432\u0448\u0438", 3, 2),
              Severity: Major
              Found in plate/static/js/lunr/lunr.ru.js - About 1 day to fix

                Function GermanStemmer has 266 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        st = new function GermanStemmer() {
                          var a_0 = [new Among("", -1, 6), new Among("U", 0, 2),
                              new Among("Y", 0, 1), new Among("\u00E4", 0, 3),
                              new Among("\u00F6", 0, 4), new Among("\u00FC", 0, 5)
                            ],
                Severity: Major
                Found in plate/static/js/lunr/lunr.de.js - About 1 day to fix

                  Function ajax has 240 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      ajax: function( url, options ) {
                  
                          // If url is an object, simulate pre-1.5 signature
                          if ( typeof url === "object" ) {
                              options = url;
                  Severity: Major
                  Found in doc/build/html/_static/jquery-1.11.1.js - About 1 day to fix

                    Function Stemmer has a Cognitive Complexity of 58 (exceeds 5 allowed). Consider refactoring.
                    Open

                    var Stemmer = function() {
                    
                      var step2list = {
                        ational: 'ate',
                        tional: 'tion',
                    Severity: Minor
                    Found in doc/build/html/_static/searchtools.js - About 1 day to fix

                    Cognitive Complexity

                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                    A method's cognitive complexity is based on a few simple rules:

                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                    • Code is considered more complex for each "break in the linear flow of the code"
                    • Code is considered more complex when "flow breaking structures are nested"

                    Further reading

                    Function SnowballProgram has 223 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                SnowballProgram: function() {
                                    var current;
                                    return {
                                        bra : 0,
                                        ket : 0,
                    Severity: Major
                    Found in plate/static/js/lunr/lunr.stemmer.support.js - About 1 day to fix

                      File lunr.it.js has 537 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      /*!
                       * Lunr languages, `Italian` language
                       * https://github.com/MihaiValentin/lunr-languages
                       *
                       * Copyright 2014, Mihai Valentin
                      Severity: Major
                      Found in plate/static/js/lunr/lunr.it.js - About 1 day to fix

                        Function setDocument has 216 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        setDocument = Sizzle.setDocument = function( node ) {
                            var hasCompare,
                                doc = node ? node.ownerDocument || node : preferredDoc,
                                parent = doc.defaultView;
                        
                        
                        Severity: Major
                        Found in doc/build/html/_static/jquery-1.11.1.js - About 1 day to fix

                          File lunr.es.js has 520 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          /*!
                           * Lunr languages, `Spanish` language
                           * https://github.com/MihaiValentin/lunr-languages
                           *
                           * Copyright 2014, Mihai Valentin
                          Severity: Major
                          Found in plate/static/js/lunr/lunr.es.js - About 1 day to fix

                            File lunr.pt.js has 491 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            /*!
                             * Lunr languages, `Portuguese` language
                             * https://github.com/MihaiValentin/lunr-languages
                             *
                             * Copyright 2014, Mihai Valentin
                            Severity: Minor
                            Found in plate/static/js/lunr/lunr.pt.js - About 7 hrs to fix

                              File lunr.hu.js has 488 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              /*!
                               * Lunr languages, `Hungarian` language
                               * https://github.com/MihaiValentin/lunr-languages
                               *
                               * Copyright 2014, Mihai Valentin
                              Severity: Minor
                              Found in plate/static/js/lunr/lunr.hu.js - About 7 hrs to fix

                                File lunr.ro.js has 479 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                /*!
                                 * Lunr languages, `Romanian` language
                                 * https://github.com/MihaiValentin/lunr-languages
                                 *
                                 * Copyright 2014, Mihai Valentin
                                Severity: Minor
                                Found in plate/static/js/lunr/lunr.ro.js - About 7 hrs to fix

                                  File searchtools.js has 478 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  /*
                                   * searchtools.js_t
                                   * ~~~~~~~~~~~~~~~~
                                   *
                                   * Sphinx JavaScript utilities for the full-text search.
                                  Severity: Minor
                                  Found in doc/build/html/_static/searchtools.js - About 7 hrs to fix

                                    File lunr.fi.js has 465 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    /*!
                                     * Lunr languages, `Finnish` language
                                     * https://github.com/MihaiValentin/lunr-languages
                                     *
                                     * Copyright 2014, Mihai Valentin
                                    Severity: Minor
                                    Found in plate/static/js/lunr/lunr.fi.js - About 7 hrs to fix

                                      Function stemmer has 178 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          lunr.da.stemmer = (function() {
                                            /* create the wrapped stemmer object */
                                            var Among = lunr.stemmerSupport.Among,
                                              SnowballProgram = lunr.stemmerSupport.SnowballProgram,
                                              st = new function DanishStemmer() {
                                      Severity: Major
                                      Found in plate/static/js/lunr/lunr.da.js - About 7 hrs to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language