Semantic-Org/Semantic-UI

View on GitHub

Showing 246 of 804 total issues

File accordion.js has 558 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * # Semantic UI - Accordion
 * http://github.com/semantic-org/semantic-ui/
 *
 *
Severity: Major
Found in src/definitions/modules/accordion.js - About 1 day to fix

    Function position has 175 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

              position: function(position, calculations) {
    
                // exit conditions
                if($target.length === 0 || $popup.length === 0) {
                  module.error(error.notFound);
    Severity: Major
    Found in src/definitions/modules/popup.js - About 7 hrs to fix

      File rating.js has 455 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*!
       * # Semantic UI - Rating
       * http://github.com/semantic-org/semantic-ui/
       *
       *
      Severity: Minor
      Found in src/definitions/modules/rating.js - About 6 hrs to fix

        Function exports has 167 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        module.exports = function(gulp) {
        
          var
            // node dependencies
            fs         = require('fs'),
        Severity: Major
        Found in tasks/collections/internal.js - About 6 hrs to fix

          File site.js has 444 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /*!
           * # Semantic UI - Site
           * http://github.com/semantic-org/semantic-ui/
           *
           *
          Severity: Minor
          Found in src/definitions/globals/site.js - About 6 hrs to fix

            File nag.js has 440 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /*!
             * # Semantic UI - Nag
             * http://github.com/semantic-org/semantic-ui/
             *
             *
            Severity: Minor
            Found in src/definitions/modules/nag.js - About 6 hrs to fix

              Function keydown has 158 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                        keydown: function(event) {
                          var
                            pressedKey    = event.which,
                            isShortcutKey = module.is.inObject(pressedKey, keys)
                          ;
              Severity: Major
              Found in src/definitions/modules/dropdown.js - About 6 hrs to fix

                Function setupIFrame has 129 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  function setupIFrame(iframe,options) {
                    function setLimits() {
                      function addStyle(style) {
                        if ((Infinity !== settings[iframeId][style]) && (0 !== settings[iframeId][style])) {
                          iframe.style[style] = settings[iframeId][style] + 'px';
                Severity: Major
                Found in examples/assets/library/iframe.js - About 5 hrs to fix

                  Function exports has 117 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  module.exports = function(callback) {
                  
                    let
                      index = -1,
                      total = release.distributions.length,
                  Severity: Major
                  Found in tasks/admin/distributions/update.js - About 4 hrs to fix

                    Function exports has 113 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    module.exports = function(callback) {
                    
                      let
                        index = -1,
                        total = release.components.length,
                    Severity: Major
                    Found in tasks/admin/components/update.js - About 4 hrs to fix

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

                                  keydown: function(event) {
                                    var
                                      pressedKey    = event.which,
                                      isShortcutKey = module.is.inObject(pressedKey, keys)
                                    ;
                      Severity: Major
                      Found in src/definitions/modules/dropdown.js - About 4 hrs to fix

                        Function exports has 97 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        module.exports = function(callback) {
                        
                          var
                            index = -1,
                            total = release.components.length,
                        Severity: Major
                        Found in tasks/admin/components/init.js - About 3 hrs to fix

                          Function exports has 95 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          module.exports = function(callback) {
                          
                            var
                              index = -1,
                              total = release.distributions.length,
                          Severity: Major
                          Found in tasks/admin/distributions/init.js - About 3 hrs to fix

                            Function creditCard has 93 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                creditCard: function(cardNumber, cardTypes) {
                                  var
                                    cards = {
                                      visa: {
                                        pattern : /^4/,
                            Severity: Major
                            Found in src/definitions/behaviors/form.js - About 3 hrs to fix

                              Function stick has 92 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      stick: function(scroll) {
                                        var
                                          cachedPosition = scroll || $scroll.scrollTop(),
                                          cache          = module.cache,
                                          fits           = cache.fits,
                              Severity: Major
                              Found in src/definitions/modules/sticky.js - About 3 hrs to fix

                                Function changeTab has 89 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        changeTab: function(tabPath) {
                                          var
                                            pushStateAvailable = (window.history && window.history.pushState),
                                            shouldIgnoreLoad   = (pushStateAvailable && settings.ignoreFirstLoad && firstLoad),
                                            remoteContent      = (settings.auto || $.isPlainObject(settings.apiSettings) ),
                                Severity: Major
                                Found in src/definitions/modules/tab.js - About 3 hrs to fix

                                  File install.js has 309 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  /*******************************
                                           Install Task
                                  *******************************/
                                  
                                  /*
                                  Severity: Minor
                                  Found in tasks/install.js - About 3 hrs to fix

                                    Function receiver has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      function receiver(event) {
                                        var processRequestFromParent = {
                                          init: function initFromParent() {
                                            function fireInit() {
                                              initMsg = event.data;
                                    Severity: Major
                                    Found in examples/assets/library/iframe-content.js - About 3 hrs to fix

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

                                              query: function() {
                                      
                                                if(module.is.disabled()) {
                                                  module.debug('Element is disabled API request aborted');
                                                  return;
                                      Severity: Major
                                      Found in src/definitions/behaviors/api.js - About 3 hrs to fix

                                        Function calculations has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                  calculations: function() {
                                                    var
                                                      $popupOffsetParent = module.get.offsetParent($popup),
                                                      targetElement      = $target[0],
                                                      isWindow           = ($boundary[0] == window),
                                        Severity: Major
                                        Found in src/definitions/modules/popup.js - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language