Semantic-Org/Semantic-UI

View on GitHub

Showing 246 of 804 total issues

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

        hideResults: function(callback) {
          callback = $.isFunction(callback)
            ? callback
            : function(){}
          ;
Severity: Minor
Found in src/definitions/modules/search.js - About 1 hr to fix

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

          setting: function(setting, value, modules, modifyExisting) {
            modules = (typeof modules === 'string')
              ? (modules === 'all')
                ? settings.modules
                : [modules]
    Severity: Minor
    Found in src/definitions/globals/site.js - About 1 hr to fix

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

                display: function() {
                  var
                    title = settings.name + ':',
                    totalTime = 0
                  ;
      Severity: Minor
      Found in src/definitions/modules/search.js - About 1 hr to fix

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

            function findTarget(location) {
              function jumpToTarget() {
                var jumpPosition = getElementPosition(target);
        
                log(iframeId,'Moving to in page link (#'+hash+') at x: '+jumpPosition.x+' y: '+jumpPosition.y);
        Severity: Minor
        Found in examples/assets/library/iframe.js - About 1 hr to fix

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

                          onSuccess : function(response) {
                            if(settings.cacheType == 'response') {
                              module.cache.add(fullTabPath, response);
                            }
                            module.update.content(tabPath, response);
          Severity: Minor
          Found in src/definitions/modules/tab.js - About 1 hr to fix

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

                      form: function(event, ignoreCallbacks) {
                        var
                          values = module.get.values(),
                          apiRequest
                        ;
            Severity: Minor
            Found in src/definitions/behaviors/form.js - About 1 hr to fix

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

                        result: function(value, results) {
                          var
                            lookupFields = ['title', 'id'],
                            result       = false
                          ;
              Severity: Minor
              Found in src/definitions/modules/search.js - About 1 hr to fix

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

                    integer: function(value, range) {
                      var
                        intRegExp = $.fn.form.settings.regExp.integer,
                        min,
                        max,
                Severity: Minor
                Found in src/definitions/behaviors/form.js - About 1 hr to fix

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

                      function scrollRequestFromChild(addOffset) {
                        /* istanbul ignore next */  //Not testable in Karma
                        function reposition() {
                          pagePosition = newPosition;
                          scrollTo();
                  Severity: Minor
                  Found in examples/assets/library/iframe.js - About 1 hr to fix

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

                                keydown: function(event) {
                                  var
                                    $field       = $(this),
                                    key          = event.which,
                                    isInput      = $field.is(selector.input),
                    Severity: Minor
                    Found in src/definitions/behaviors/form.js - About 1 hr to fix

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

                                dimmerSettings: function() {
                                  if($.fn.dimmer === undefined) {
                                    module.error(error.dimmer);
                                    return;
                                  }
                      Severity: Minor
                      Found in src/definitions/modules/modal.js - About 1 hr to fix

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

                              walk = function(directory) {
                                var
                                  pathArray     = directory.split(path.sep),
                                  folder        = pathArray[pathArray.length - 1],
                                  nextDirectory = path.join(directory, path.sep, '..')
                        Severity: Minor
                        Found in tasks/config/project/install.js - About 1 hr to fix

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

                                    above: function() {
                                      var
                                        box = {
                                          origin : (($activeSide.outerHeight(true) - $nextSide.outerHeight(true)) / 2),
                                          depth  : {
                          Severity: Minor
                          Found in src/definitions/modules/shape.js - About 1 hr to fix

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

                                    fuzzySearch: function(query, term) {
                                      var
                                        termLength  = term.length,
                                        queryLength = query.length
                                      ;
                            Severity: Minor
                            Found in src/definitions/modules/search.js - About 1 hr to fix

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

                                        below: function() {
                                          var
                                            box = {
                                              origin : (($activeSide.outerHeight(true) - $nextSide.outerHeight(true)) / 2),
                                              depth  : {
                              Severity: Minor
                              Found in src/definitions/modules/shape.js - About 1 hr to fix

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

                                          percent: function(percent) {
                                            percent = (typeof percent == 'string')
                                              ? +(percent.replace('%', ''))
                                              : percent
                                            ;
                                Severity: Minor
                                Found in src/definitions/modules/progress.js - About 1 hr to fix

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

                                            display: function() {
                                              var
                                                title = settings.name + ':',
                                                totalTime = 0
                                              ;
                                  Severity: Minor
                                  Found in src/definitions/modules/popup.js - About 1 hr to fix

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

                                              text: function(text) {
                                                if(settings.action !== 'select') {
                                                  if(settings.action == 'combo') {
                                                    module.debug('Changing combo button text', text, $combo);
                                                    if(settings.preserveHTML) {
                                    Severity: Minor
                                    Found in src/definitions/modules/dropdown.js - About 1 hr to fix

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

                                                display: function() {
                                                  var
                                                    title = settings.name + ':',
                                                    totalTime = 0
                                                  ;
                                      Severity: Minor
                                      Found in src/definitions/behaviors/api.js - About 1 hr to fix

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

                                                  display: function() {
                                                    var
                                                      title = settings.name + ':',
                                                      totalTime = 0
                                                    ;
                                        Severity: Minor
                                        Found in src/definitions/modules/tab.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language