Semantic-Org/Semantic-UI

View on GitHub

Showing 246 of 804 total issues

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

          content: function(tabPath, fullTabPath) {
            var
              $tab        = module.get.tabElement(tabPath),
              apiSettings = {
                dataType         : 'html',
Severity: Major
Found in src/definitions/modules/tab.js - About 3 hrs to fix

    Function handleKeyboard has 76 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            handleKeyboard: function(event) {
              var
                // force selector refresh
                $result         = $module.find(selector.result),
                $category       = $module.find(selector.category),
    Severity: Major
    Found in src/definitions/modules/search.js - About 3 hrs to fix

      Function setupInPageLinks has 73 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        function setupInPageLinks() {
      
          function getPagePosition () {
            return {
              x: (window.pageXOffset !== undefined) ? window.pageXOffset : document.documentElement.scrollLeft,
      Severity: Major
      Found in examples/assets/library/iframe-content.js - About 2 hrs to fix

        Function setupBodyMutationObserver has 70 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          function setupBodyMutationObserver() {
            function addImageLoadListners(mutation) {
              function addImageLoadListener(element) {
                if (false === element.complete) {
                  log('Attach listeners to ' + element.src);
        Severity: Major
        Found in examples/assets/library/iframe-content.js - About 2 hrs to fix

          Function urlData has 70 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                    urlData: function(url, urlData) {
                      var
                        requiredVariables,
                        optionalVariables
                      ;
          Severity: Major
          Found in src/definitions/behaviors/api.js - About 2 hrs to fix

            Function selected has 69 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                      selected: function(value, $selectedItem) {
                        var
                          isMultiple = module.is.multiple(),
                          $userSelectedItem
                        ;
            Severity: Major
            Found in src/definitions/modules/dropdown.js - About 2 hrs to fix

              Function inlineCSS has 69 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                        inlineCSS: function() {
                          var
                            width     = module.cache.width  || $module.outerWidth(),
                            height    = module.cache.height || $module.outerHeight(),
                            isRTL     = module.is.rtl(),
              Severity: Major
              Found in src/definitions/modules/sidebar.js - About 2 hrs to fix

                Function parser has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function parser(file, callback) {
                  // file exit conditions
                  if(file.isNull()) {
                    return callback(null, file); // pass along
                  }
                Severity: Major
                Found in tasks/docs/metadata.js - About 2 hrs to fix

                  Function mouseEvents has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                            mouseEvents: function() {
                              module.verbose('Binding mouse events');
                              if(module.is.multiple()) {
                                $module
                                  .on('click'   + eventNamespace, selector.label,  module.event.label.click)
                  Severity: Major
                  Found in src/definitions/modules/dropdown.js - About 2 hrs to fix

                    Function open has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            open: function(query) {
                              var
                                $activeTitle = (query !== undefined)
                                  ? (typeof query === 'number')
                                    ? $title.eq(query)
                    Severity: Major
                    Found in src/definitions/modules/accordion.js - About 2 hrs to fix

                      Function filter has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              filter: function(query) {
                                var
                                  searchTerm = (query !== undefined)
                                    ? query
                                    : module.get.query(),
                      Severity: Major
                      Found in src/definitions/modules/dropdown.js - About 2 hrs to fix

                        File create.js has 269 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        /*******************************
                             Create Component Repos
                        *******************************/
                        
                        /*
                        Severity: Minor
                        Found in tasks/admin/components/create.js - About 2 hrs to fix

                          Function values has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                    values: function (fields) {
                                      var
                                        $fields = $.isArray(fields)
                                          ? module.get.fields(fields)
                                          : $field,
                          Severity: Major
                          Found in src/definitions/behaviors/form.js - About 2 hrs to fix

                            Function closeOthers has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    closeOthers: function(index) {
                                      var
                                        $activeTitle = (index !== undefined)
                                          ? $title.eq(index)
                                          : $(this).closest(selector.title),
                            Severity: Major
                            Found in src/definitions/modules/accordion.js - About 2 hrs to fix

                              Function setupPublicMethods has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                function setupPublicMethods() {
                                  log('Enable public methods');
                              
                                  win.parentIFrame = {
                              
                              
                              Severity: Major
                              Found in examples/assets/library/iframe-content.js - About 2 hrs to fix

                                Function transition has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                          transition: function(forced) {
                                            var
                                              animation         = settings.animation,
                                              transitionExists  = module.get.transitionExists(animation),
                                              displayType       = module.get.displayType(false),
                                Severity: Major
                                Found in src/definitions/modules/transition.js - About 2 hrs to fix

                                  Function filterItems has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          filterItems: function(query) {
                                            var
                                              searchTerm = (query !== undefined)
                                                ? query
                                                : module.get.query(),
                                  Severity: Major
                                  Found in src/definitions/modules/dropdown.js - About 2 hrs to fix

                                    Function close has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            close: function(query) {
                                              var
                                                $activeTitle = (query !== undefined)
                                                  ? (typeof query === 'number')
                                                    ? $title.eq(query)
                                    Severity: Major
                                    Found in src/definitions/modules/accordion.js - About 2 hrs to fix

                                      Function field has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                                field: function(field, fieldName, showErrors) {
                                                  showErrors = (showErrors !== undefined)
                                                    ? showErrors
                                                    : true
                                                  ;
                                      Severity: Major
                                      Found in src/definitions/behaviors/form.js - About 2 hrs to fix

                                        Function showModal has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                showModal: function(callback) {
                                                  callback = $.isFunction(callback)
                                                    ? callback
                                                    : function(){}
                                                  ;
                                        Severity: Major
                                        Found in src/definitions/modules/modal.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language