Semantic-Org/Semantic-UI

View on GitHub

Showing 246 of 804 total issues

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

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

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

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

      Function throttle has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        function throttle(func) {
          var
            context, args, result,
            timeout = null,
            previous = 0,
      Severity: Minor
      Found in examples/assets/library/iframe-content.js - About 1 hr to fix

        Function userChoice has 35 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                  userChoice: function(values) {
                    var
                      $userChoices,
                      $userChoice,
                      isUserValue,
        Severity: Minor
        Found in src/definitions/modules/dropdown.js - About 1 hr to fix

          Function actionMsg has 35 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function actionMsg() {
          
                if(settings[iframeId] && settings[iframeId].firstRun) firstRun();
          
                switch(messageData.type) {
          Severity: Minor
          Found in examples/assets/library/iframe.js - About 1 hr to fix

            Function afterFiltered has 35 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                        afterFiltered = function() {
                          if(module.is.multiple()) {
                            module.filterActive();
                          }
                          if(query || (!query && module.get.activeItem().length == 0)) {
            Severity: Minor
            Found in src/definitions/modules/dropdown.js - About 1 hr to fix

              Function reset has 34 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      reset: function() {
                        $field
                          .each(function () {
                            var
                              $field       = $(this),
              Severity: Minor
              Found in src/definitions/behaviors/form.js - About 1 hr to fix

                Function id has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                          id: function(results) {
                            module.debug('Injecting unique ids into results');
                            var
                              // since results may be object, we must use counters
                              categoryIndex = 0,
                Severity: Minor
                Found in src/definitions/modules/search.js - About 1 hr to fix

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

                  module.exports = function(config) {
                    config.set({
                  
                      // base path, that will be used to resolve files and exclude
                      basePath: '',
                  Severity: Minor
                  Found in karma.conf.js - About 1 hr to fix

                    Function isMessageFromIFrame has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function isMessageFromIFrame() {
                          function checkAllowedOrigin() {
                            function checkList() {
                              var
                                i = 0,
                    Severity: Minor
                    Found in examples/assets/library/iframe.js - About 1 hr to fix

                      Function getPackageManager has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        getPackageManager: function(directory) {
                          var
                            // returns last matching result (avoid sub-module detection)
                            walk = function(directory) {
                              var
                      Severity: Minor
                      Found in tasks/config/project/install.js - About 1 hr to fix

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

                                  settings: function(animation, duration, onComplete) {
                                    // single settings object
                                    if(typeof animation == 'object') {
                                      return $.extend(true, {}, $.fn.transition.settings, animation);
                                    }
                        Severity: Minor
                        Found in src/definitions/modules/transition.js - About 1 hr to fix

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

                                    openRightward: function($subMenu) {
                                      var
                                        $currentMenu     = $subMenu || $menu,
                                        canOpenRightward = true,
                                        isOffscreenRight = false,
                          Severity: Minor
                          Found in src/definitions/modules/dropdown.js - About 1 hr to fix

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

                              function trigger(calleeMsg, msg, iframe, id, noResponseWarning) {
                                function postMessageToIFrame() {
                                  var target = settings[id] && settings[id].targetOrigin;
                                  log(id,'[' + calleeMsg + '] Sending msg to iframe['+id+'] ('+msg+') targetOrigin: '+target);
                                  iframe.contentWindow.postMessage( msgId + msg, target );
                            Severity: Minor
                            Found in examples/assets/library/iframe.js - About 1 hr to fix

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

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

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

                                    let bowerTask = function() {
                                      console.info('Extending bower.json');
                                      return gulp.src(release.templates.bower)
                                        .pipe(plumber())
                                        .pipe(flatten())
                                Severity: Minor
                                Found in tasks/admin/components/create.js - About 1 hr to fix

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

                                          animate: function(propertyObject, callback) {
                                            module.verbose('Animating box with properties', propertyObject);
                                            callback = callback || function(event) {
                                              module.verbose('Executing animation callback');
                                              if(event !== undefined) {
                                  Severity: Minor
                                  Found in src/definitions/modules/shape.js - About 1 hr to fix

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

                                              settings: function() {
                                                var
                                                  runSettings
                                                ;
                                                runSettings = settings.beforeSend.call(context, settings);
                                    Severity: Minor
                                    Found in src/definitions/behaviors/api.js - About 1 hr to fix

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

                                                elementCalculations: function() {
                                                  var
                                                    screen     = module.get.screenCalculations(),
                                                    element    = module.get.elementPosition()
                                                  ;
                                      Severity: Minor
                                      Found in src/definitions/behaviors/visibility.js - About 1 hr to fix

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

                                                  selectedLetter: function(letter) {
                                                    var
                                                      $selectedItem         = $item.filter('.' + className.selected),
                                                      alreadySelectedLetter = $selectedItem.length > 0 && module.has.firstLetter($selectedItem, letter),
                                                      $nextValue            = false,
                                        Severity: Minor
                                        Found in src/definitions/modules/dropdown.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language