tomi77/pyems

View on GitHub

Showing 178 of 178 total issues

File jquery-1.11.1.js has 6829 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery JavaScript Library v1.11.1
 * http://jquery.com/
 *
 * Includes Sizzle.js
Severity: Major
Found in docs/html/_static/jquery-1.11.1.js - About 2 wks to fix

    Function Sizzle has 1347 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    (function( window ) {
    
    var i,
        support,
        Expr,
    Severity: Major
    Found in docs/html/_static/jquery-1.11.1.js - About 6 days to fix

      File __init__.py has 834 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      try:
          import urlparse
      except ImportError:
          import urllib.parse as urlparse
      
      
      Severity: Major
      Found in pyems/__init__.py - About 2 days 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 docs/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 docs/html/_static/websupport.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 docs/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 docs/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 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 docs/html/_static/jquery-1.11.1.js - About 1 day 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 docs/html/_static/searchtools.js - About 7 hrs to fix

                  Function performObjectSearch has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring.
                  Open

                    performObjectSearch : function(object, otherterms) {
                      var filenames = this._index.filenames;
                      var objects = this._index.objects;
                      var objnames = this._index.objnames;
                      var titles = this._index.titles;
                  Severity: Minor
                  Found in docs/html/_static/searchtools.js - About 6 hrs 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 query has a Cognitive Complexity of 41 (exceeds 5 allowed). Consider refactoring.
                  Open

                    query : function(query) {
                      var i;
                      var stopwords = ["a","and","are","as","at","be","but","by","for","if","in","into","is","it","near","no","not","of","on","or","such","that","the","their","then","there","these","they","this","to","was","will","with"];
                  
                      // stem the searchterms and add them to the correct list
                  Severity: Minor
                  Found in docs/html/_static/searchtools.js - About 6 hrs 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 Stemmer has 151 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  var Stemmer = function() {
                  
                    var step2list = {
                      ational: 'ate',
                      tional: 'tion',
                  Severity: Major
                  Found in docs/html/_static/searchtools.js - About 6 hrs to fix

                    Function Callbacks has 128 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    jQuery.Callbacks = function( options ) {
                    
                        // Convert options from String-formatted to Object-formatted if needed
                        // (we check in cache first)
                        options = typeof options === "string" ?
                    Severity: Major
                    Found in docs/html/_static/jquery-1.11.1.js - About 5 hrs to fix

                      Consider simplifying this complex logical expression.
                      Open

                                  if ( event.pageX == null && original.clientX != null ) {
                                      eventDoc = event.target.ownerDocument || document;
                                      doc = eventDoc.documentElement;
                                      body = eventDoc.body;
                      
                      
                      Severity: Critical
                      Found in docs/html/_static/jquery-1.11.1.js - About 5 hrs to fix

                        Function sphinx-rtd-theme has 118 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        require=(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})({"sphinx-rtd-theme":[function(require,module,exports){
                        var jQuery = (typeof(window) != 'undefined') ? window.jQuery : require('jquery');
                        
                        // Sphinx theme nav state
                        function ThemeNav () {
                        Severity: Major
                        Found in docs/html/_static/js/theme.js - About 4 hrs to fix

                          Function query has 114 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            query : function(query) {
                              var i;
                              var stopwords = ["a","and","are","as","at","be","but","by","for","if","in","into","is","it","near","no","not","of","on","or","such","that","the","their","then","there","these","they","this","to","was","will","with"];
                          
                              // stem the searchterms and add them to the correct list
                          Severity: Major
                          Found in docs/html/_static/searchtools.js - About 4 hrs to fix

                            Function ThemeNav has 111 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function ThemeNav () {
                            
                                var nav = {
                                    navBar: null,
                                    win: null,
                            Severity: Major
                            Found in docs/html/_static/js/theme.js - About 4 hrs to fix

                              Function stemWord has 109 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                this.stemWord = function (w) {
                                  var stem;
                                  var suffix;
                                  var firstch;
                                  var origword = w;
                              Severity: Major
                              Found in docs/html/_static/searchtools.js - About 4 hrs to fix

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

                                function defaultPrefilter( elem, props, opts ) {
                                    /* jshint validthis: true */
                                    var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,
                                        anim = this,
                                        orig = {},
                                Severity: Major
                                Found in docs/html/_static/jquery-1.11.1.js - About 4 hrs to fix

                                  Api has 32 functions (exceeds 20 allowed). Consider refactoring.
                                  Open

                                  class Api(object):
                                      def __init__(self, uri):
                                          url = urlparse.urlparse(uri)
                                          try:
                                              protocol_class = get_module_class(SCHEMES[url.scheme])
                                  Severity: Minor
                                  Found in pyems/__init__.py - About 4 hrs to fix
                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language