Semantic-Org/Semantic-UI

View on GitHub

Showing 246 of 804 total issues

Function item has 57 lines of code (exceeds 25 allowed). Consider refactoring.
Open

          item: function(value, strict) {
            var
              $selectedItem = false,
              shouldSearch,
              isMultiple
Severity: Major
Found in src/definitions/modules/dropdown.js - About 2 hrs to fix

    Function create has 57 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            create: function() {
              var
                html      = module.get.html(),
                title     = module.get.title(),
                content   = module.get.content()
    Severity: Major
    Found in src/definitions/modules/popup.js - About 2 hrs to fix

      Function category has 56 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          category: function(response, fields) {
            var
              html = '',
              escape = $.fn.search.settings.templates.escape
            ;
      Severity: Major
      Found in src/definitions/modules/search.js - About 2 hrs to fix

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

                  show: function(callback) {
                    callback = $.isFunction(callback)
                      ? callback
                      : function(){}
                    ;
        Severity: Major
        Found in src/definitions/modules/dimmer.js - About 2 hrs to fix

          Function invoke has 54 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  invoke: function(query, passedArguments, context) {
                    var
                      object = instance,
                      maxDepth,
                      found,
          Severity: Major
          Found in src/definitions/modules/transition.js - About 2 hrs to fix

            Function value has 53 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                      value: function(value, text, $selected) {
                        var
                          escapedValue = module.escape.value(value),
                          hasInput     = ($input.length > 0),
                          currentValue = module.get.values(),
            Severity: Major
            Found in src/definitions/modules/dropdown.js - About 2 hrs to fix

              Function nextPosition has 53 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                        nextPosition: function(position) {
                          var
                            positions          = position.split(' '),
                            verticalPosition   = positions[0],
                            horizontalPosition = positions[1],
              Severity: Major
              Found in src/definitions/modules/popup.js - About 2 hrs to fix

                Function positions has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                          positions: function() {
                            var
                              scrollContext = {
                                height : $scroll.height()
                              },
                Severity: Major
                Found in src/definitions/modules/sticky.js - About 2 hrs to fix

                  Function parser has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
                  Open

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

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Function invoke has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          invoke: function(query, passedArguments, context) {
                            var
                              object = instance,
                              maxDepth,
                              found,
                  Severity: Major
                  Found in src/definitions/modules/embed.js - About 2 hrs to fix

                    Function invoke has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            invoke: function(query, passedArguments, context) {
                              var
                                object = instance,
                                maxDepth,
                                found,
                    Severity: Major
                    Found in src/definitions/behaviors/visibility.js - About 2 hrs to fix

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

                                values: function (fields) {
                                  if($.isEmptyObject(fields)) {
                                    return;
                                  }
                                  $.each(fields, function(key, value) {
                      Severity: Major
                      Found in src/definitions/behaviors/form.js - About 2 hrs to fix

                        Function invoke has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                invoke: function(query, passedArguments, context) {
                                  var
                                    object = instance,
                                    maxDepth,
                                    found,
                        Severity: Major
                        Found in src/definitions/modules/nag.js - About 2 hrs to fix

                          Function invoke has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  invoke: function(query, passedArguments, context) {
                                    var
                                      object = instance,
                                      maxDepth,
                                      found,
                          Severity: Major
                          Found in src/definitions/behaviors/api.js - About 2 hrs to fix

                            Function invoke has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    invoke: function(query, passedArguments, context) {
                                      var
                                        object = instance,
                                        maxDepth,
                                        found,
                            Severity: Major
                            Found in src/definitions/modules/sidebar.js - About 2 hrs to fix

                              Function invoke has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      invoke: function(query, passedArguments, context) {
                                        var
                                          object = instance,
                                          maxDepth,
                                          found,
                              Severity: Major
                              Found in src/definitions/modules/dropdown.js - About 2 hrs to fix

                                Function invoke has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        invoke: function(query, passedArguments, context) {
                                          var
                                            object = instance,
                                            maxDepth,
                                            found,
                                Severity: Major
                                Found in src/definitions/modules/tab.js - About 2 hrs to fix

                                  Function invoke has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          invoke: function(query, passedArguments, context) {
                                            var
                                              object = instance,
                                              maxDepth,
                                              found,
                                  Severity: Major
                                  Found in src/definitions/modules/accordion.js - About 2 hrs to fix

                                    Function invoke has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            invoke: function(query, passedArguments, context) {
                                              var
                                                object = instance,
                                                maxDepth,
                                                found,
                                    Severity: Major
                                    Found in src/definitions/modules/dimmer.js - About 2 hrs to fix

                                      Function invoke has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              invoke: function(query, passedArguments, context) {
                                                var
                                                  object = instance,
                                                  maxDepth,
                                                  found,
                                      Severity: Major
                                      Found in src/definitions/modules/progress.js - About 2 hrs to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language