tomi77/pyems

View on GitHub

Showing 178 of 178 total issues

Function load has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

jQuery.fn.load = function( url, params, callback ) {
    if ( typeof url !== "string" && _load ) {
        return _load.apply( this, arguments );
    }

Severity: Minor
Found in docs/html/_static/jquery-1.11.1.js - About 1 hr to fix

    Function addClass has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        addClass: function( value ) {
            var classes, elem, cur, clazz, j, finalValue,
                i = 0,
                len = this.length,
                proceed = typeof value === "string" && value;
    Severity: Minor
    Found in docs/html/_static/jquery-1.11.1.js - About 1 hr to fix

      Function init has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          nav.init = function ($) {
              var doc = $(document),
                  self = this;
      
              this.navBar = $('div.wy-side-scroll:first');
      Severity: Minor
      Found in docs/html/_static/js/theme.js - About 1 hr to fix

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

            handlers: function( event, handlers ) {
                var sel, handleObj, matches, i,
                    handlerQueue = [],
                    delegateCount = handlers.delegateCount,
                    cur = event.target;
        Severity: Minor
        Found in docs/html/_static/jquery-1.11.1.js - About 1 hr to fix

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

              attr: function( elem, name, value ) {
                  var hooks, ret,
                      nType = elem.nodeType;
          
                  // don't get/set attributes on text, comment and attribute nodes
          Severity: Minor
          Found in docs/html/_static/jquery-1.11.1.js - About 1 hr to fix

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

            jQuery.ready.promise = function( obj ) {
                if ( !readyList ) {
            
                    readyList = jQuery.Deferred();
            
            
            Severity: Minor
            Found in docs/html/_static/jquery-1.11.1.js - About 1 hr to fix

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

                  html: function( value ) {
                      return access( this, function( value ) {
                          var elem = this[ 0 ] || {},
                              i = 0,
                              l = this.length;
              Severity: Minor
              Found in docs/html/_static/jquery-1.11.1.js - About 1 hr to fix

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

                  function deleteComment(id) {
                    $.ajax({
                      type: 'POST',
                      url: opts.deleteCommentURL,
                      data: {id: id},
                Severity: Minor
                Found in docs/html/_static/websupport.js - About 1 hr to fix

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

                      toggleClass: function( value, stateVal ) {
                          var type = typeof value;
                  
                          if ( typeof stateVal === "boolean" && type === "string" ) {
                              return stateVal ? this.addClass( value ) : this.removeClass( value );
                  Severity: Minor
                  Found in docs/html/_static/jquery-1.11.1.js - About 1 hr to fix

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

                        fix: function( event ) {
                            if ( event[ jQuery.expando ] ) {
                                return event;
                            }
                    
                    
                    Severity: Minor
                    Found in docs/html/_static/jquery-1.11.1.js - About 1 hr to fix

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

                          finish: function( type ) {
                              if ( type !== false ) {
                                  type = type || "fx";
                              }
                              return this.each(function() {
                      Severity: Minor
                      Found in docs/html/_static/jquery-1.11.1.js - About 1 hr to fix

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

                        function propFilter( props, specialEasing ) {
                            var index, name, easing, value, hooks;
                        
                            // camelCase, specialEasing and expand cssHook pass
                            for ( index in props ) {
                        Severity: Minor
                        Found in docs/html/_static/jquery-1.11.1.js - About 1 hr to fix

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

                            function getComments(id) {
                              $.ajax({
                               type: 'GET',
                               url: opts.getCommentsURL,
                               data: {node: id},
                          Severity: Minor
                          Found in docs/html/_static/websupport.js - About 1 hr to fix

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

                                    setup: function() {
                            
                                        if ( rformElems.test( this.nodeName ) ) {
                                            // IE doesn't fire change on a check/radio until blur; trigger it on click
                                            // after a propertychange. Eat the blur-change in special.change.handle.
                            Severity: Minor
                            Found in docs/html/_static/jquery-1.11.1.js - About 1 hr to fix

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

                                      "*": [ function( prop, value ) {
                                          var tween = this.createTween( prop, value ),
                                              target = tween.cur(),
                                              parts = rfxnum.exec( value ),
                                              unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
                              Severity: Minor
                              Found in docs/html/_static/jquery-1.11.1.js - About 1 hr to fix

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

                                    off: function( types, selector, fn ) {
                                        var handleObj, type;
                                        if ( types && types.preventDefault && types.handleObj ) {
                                            // ( event )  dispatched jQuery.Event
                                            handleObj = types.handleObj;
                                Severity: Minor
                                Found in docs/html/_static/jquery-1.11.1.js - About 1 hr to fix

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

                                      offset: function( options ) {
                                          if ( arguments.length ) {
                                              return options === undefined ?
                                                  this :
                                                  this.each(function( i ) {
                                  Severity: Minor
                                  Found in docs/html/_static/jquery-1.11.1.js - About 1 hr to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                            if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
                                                    support.getById && context.nodeType === 9 && documentIsHTML &&
                                                    Expr.relative[ tokens[1].type ] ) {
                                    
                                                context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
                                    Severity: Major
                                    Found in docs/html/_static/jquery-1.11.1.js - About 1 hr to fix

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

                                      var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
                                      Severity: Major
                                      Found in docs/html/_static/jquery-1.11.1.js - About 50 mins to fix

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

                                            @expected('privateStreamName', 'publicStreamName')
                                            def create_ingest_point(self, privateStreamName, publicStreamName):
                                                """
                                                Creates an RTMP ingest point, which mandates that streams pushed into
                                                the EMS have a target stream name which matches one Ingest Point
                                        Severity: Minor
                                        Found in pyems/__init__.py and 1 other location - About 50 mins to fix
                                        pyems/__init__.py on lines 924..940

                                        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 36.

                                        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

                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language