angelakuo/citydogshare

View on GitHub
public/assets/semantic-ui/sticky-34df4b72b2c89efde0353741d241e473ee78b331632414e8e7a5752f7cc48d09.js

Summary

Maintainability
F
6 days
Test Coverage

Function sticky has 657 lines of code (exceeds 25 allowed). Consider refactoring.
Open

$.fn.sticky = function(parameters) {
  var
    $allModules    = $(this),
    moduleSelector = $allModules.selector || '',

    File sticky-34df4b72b2c89efde0353741d241e473ee78b331632414e8e7a5752f7cc48d09.js has 695 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

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

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

              stick: function() {
                var
                  cache          = module.cache,
                  fits           = cache.fits,
                  element        = cache.element,

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

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

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

                    positions: function() {
                      var
                        window = {
                          height: $window.height()
                        },

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

                    initialize: function() {
                      if(settings.context) {
                        $context = $(settings.context);
                      }
                      else {

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

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

                Avoid deeply nested control flow statements.
                Open

                                if( scroll.top < element.top ) {
                                  module.debug('Fixed element reached top of container');
                                  module.setInitialPosition();
                                }
                                else if( (element.height + scroll.top - elementScroll) > context.bottom ) {

                  Avoid deeply nested control flow statements.
                  Open

                                else if(module.is.bottom() ) {
                  
                                  // top edge
                                  if( (scroll.bottom - element.height) < element.top) {
                                    module.debug('Bottom fixed rail has reached top of container');

                    Avoid deeply nested control flow statements.
                    Open

                                  if(settings.pushing) {
                                    if(module.is.bound() && scroll.bottom < context.bottom ) {
                                      module.debug('Fixing bottom attached element to bottom of browser.');
                                      module.fixBottom();
                                    }

                      There are no issues that match your filters.

                      Category
                      Status