angelakuo/citydogshare

View on GitHub
public/assets/semantic-ui/popup-751a7257651e6a8d11e3fcda04a94de0fa27c14d719ca472c6027cbd95bfcbe0.js

Summary

Maintainability
F
1 wk
Test Coverage

Function popup has 968 lines of code (exceeds 25 allowed). Consider refactoring.
Open

$.fn.popup = function(parameters) {
  var
    $allModules    = $(this),
    $document      = $(document),

    File popup-751a7257651e6a8d11e3fcda04a94de0fa27c14d719ca472c6027cbd95bfcbe0.js has 1085 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*
     * # Semantic - Popup
     * http://github.com/semantic-org/semantic-ui/
     *
     *

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

                position: function(position, arrowOffset) {
                  var
                    windowWidth   = $(window).width(),
                    windowHeight  = $(window).height(),
      
      

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

                create: function() {
                  var
                    html      = $module.data(metadata.html)      || settings.html,
                    variation = $module.data(metadata.variation) || settings.variation,
                    title     = $module.data(metadata.title)     || settings.title,

          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],

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

                    invoke: function(query, passedArguments, context) {
                      var
                        object = instance,
                        maxDepth,
                        found,

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

                        offstagePosition: function(position) {
                          var
                            boundary  = {
                              top    : $(window).scrollTop(),
                              bottom : $(window).scrollTop() + $(window).height(),

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

                        refresh: function() {
                          if(settings.popup) {
                            $popup = $(settings.popup).eq(0);
                          }
                          else {

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

                            show: function(callback) {
                              callback = $.isFunction(callback) ? callback : function(){};
                              if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
                                module.set.visible();
                                $popup

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

                              hide: function(callback) {
                                callback = $.isFunction(callback) ? callback : function(){};
                                module.debug('Hiding pop-up');
                                if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
                                  $popup

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

                                display: function() {
                                  var
                                    title = settings.name + ':',
                                    totalTime = 0
                                  ;

                        Function easeOutQuad has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                          easeOutQuad: function (x, t, b, c, d) {

                          There are no issues that match your filters.

                          Category
                          Status