privly/privly-web

View on GitHub

Showing 60 of 98 total issues

File bootstrap.js has 1517 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* ===================================================
* bootstrap-transition.js v2.3.2
* http://getbootstrap.com/2.3.2/javascript.html#transitions
* ===================================================
* Copyright 2013 Twitter, Inc.
Severity: Major
Found in app/assets/javascripts/bootstrap.js - About 4 days to fix

    File privly-0.1.2.js has 433 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*******************************************************************************
    Open Source Initiative OSI - The MIT License (MIT):Licensing
    [OSI Approved License]
    The MIT License (MIT)
     
     
    Severity: Minor
    Found in public/cdn/privly-0.1.2.js - About 6 hrs to fix

      File privly-0.1.3.js has 418 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*******************************************************************************
      Open Source Initiative OSI - The MIT License (MIT):Licensing
      [OSI Approved License]
      The MIT License (MIT)
       
       
      Severity: Minor
      Found in public/cdn/privly-0.1.3.js - About 6 hrs to fix

        File privly.js has 418 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /*******************************************************************************
        Open Source Initiative OSI - The MIT License (MIT):Licensing
        [OSI Approved License]
        The MIT License (MIT)
         
         
        Severity: Minor
        Found in public/cdn/privly.js - About 6 hrs to fix

          Function processLink has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
          Open

          processLink: function(anchorElement)
          {
          "use strict";
          // Don't process editable links
          Severity: Minor
          Found in public/cdn/privly-0.1.2.js - About 3 hrs to fix

          Function processLink has 74 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          processLink: function(anchorElement)
          {
          "use strict";
          // Don't process editable links
          Severity: Major
          Found in public/cdn/privly-0.1.2.js - About 2 hrs to fix

            Function correctIndirection has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
            Open

            correctIndirection: function()
            {
            "use strict";
            var anchors = document.links;
            var i = anchors.length;
            Severity: Minor
            Found in public/cdn/privly-0.1.2.js - About 2 hrs to fix

            Function correctIndirection has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
            Open

            correctIndirection: function()
            {
            "use strict";
            var anchors = document.links;
            var i = anchors.length;
            Severity: Minor
            Found in public/cdn/privly-0.1.3.js - About 2 hrs to fix

            Function correctIndirection has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
            Open

            correctIndirection: function()
            {
            "use strict";
            var anchors = document.links;
            var i = anchors.length;
            Severity: Minor
            Found in public/cdn/privly.js - About 2 hrs to fix

            Function slide has 45 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            , slide: function (type, next) {
            var $active = this.$element.find('.item.active')
            , $next = next || $active[type]()
            , isCycling = this.interval
            , direction = type == 'next' ? 'left' : 'right'
            Severity: Minor
            Found in app/assets/javascripts/bootstrap.js - About 1 hr to fix

              Function createLinks has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
              Open

              createLinks: function()
              {
              "use strict";
              /***********************************************************************
              Inspired by Linkify script:
              Severity: Minor
              Found in public/cdn/privly.js - About 1 hr to fix

              Function createLinks has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
              Open

              createLinks: function()
              {
              "use strict";
              /***********************************************************************
              Inspired by Linkify script:
              Severity: Minor
              Found in public/cdn/privly-0.1.2.js - About 1 hr to fix

              Function createLinks has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
              Open

              createLinks: function()
              {
              "use strict";
              /***********************************************************************
              Inspired by Linkify script:
              Severity: Minor
              Found in public/cdn/privly-0.1.3.js - About 1 hr to fix

              Function createLinks has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
              Open

              createLinks: function()
              {
              /*************************************************************************
              Inspired by Linkify script:
              http://downloads.mozdev.org/greasemonkey/linkify.user.js
              Severity: Minor
              Found in public/cdn/privly-0.1.1.js - About 1 hr to fix

              Function show has 42 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              , show: function () {
              var $tip
              , pos
              , actualWidth
              , actualHeight
              Severity: Minor
              Found in app/assets/javascripts/bootstrap.js - About 1 hr to fix

                Consider simplifying this complex logical expression.
                Open

                if (!exclude && privlyExcludeUndefined) {
                var passive = this.extensionMode === privly.extensionModeEnum.PASSIVE ||
                params.passive !== undefined || params.privlyPassive !== undefined ||
                !whitelist || privly.nextAvailableFrameID > 39;
                Severity: Critical
                Found in public/cdn/privly-0.1.2.js - About 1 hr to fix

                  Function createLinks has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  createLinks: function()
                  {
                  "use strict";
                  /***********************************************************************
                  Inspired by Linkify script:
                  Severity: Minor
                  Found in public/cdn/privly.js - About 1 hr to fix

                    Function createLinks has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    createLinks: function()
                    {
                    "use strict";
                    /***********************************************************************
                    Inspired by Linkify script:
                    Severity: Minor
                    Found in public/cdn/privly-0.1.2.js - About 1 hr to fix

                      Function replaceLink has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      replaceLink: function(object)
                      {
                      "use strict";
                      var iFrame = document.createElement('iframe');
                      Severity: Minor
                      Found in public/cdn/privly-0.1.2.js - About 1 hr to fix

                        Function createLinks has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        createLinks: function()
                        {
                        "use strict";
                        /***********************************************************************
                        Inspired by Linkify script:
                        Severity: Minor
                        Found in public/cdn/privly-0.1.3.js - About 1 hr to fix
                          Severity
                          Category
                          Status
                          Source
                          Language