APO-Epsilon/apo-website

View on GitHub
r8conf2016/js/foundation/foundation.reveal.js

Summary

Maintainability
C
1 day
Test Coverage

File foundation.reveal.js has 333 lines of code (exceeds 250 allowed). Consider refactoring.
Open

;(function ($, window, document, undefined) {
  'use strict';

  Foundation.libs.reveal = {
    name : 'reveal',
Severity: Minor
Found in r8conf2016/js/foundation/foundation.reveal.js - About 4 hrs to fix

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

        events : function (scope) {
          var self = this,
              S = self.S;
    
          S(this.scope)
    Severity: Major
    Found in r8conf2016/js/foundation/foundation.reveal.js - About 2 hrs to fix

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

          show : function (el, css) {
            // is modal
            if (css) {
              var settings = el.data(this.attr_name(true) + '-init');
              if (el.parent('body').length === 0) {
      Severity: Major
      Found in r8conf2016/js/foundation/foundation.reveal.js - About 2 hrs to fix

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

            open : function (target, ajax_settings) {
              var self = this;
              if (target) {
                if (typeof target.selector !== 'undefined') {
                  var modal = self.S('#' + target.data(self.data_attr('reveal-id')));
        Severity: Major
        Found in r8conf2016/js/foundation/foundation.reveal.js - About 2 hrs to fix

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

              hide : function (el, css) {
                // is modal
                if (css) {
                  var settings = el.data(this.attr_name(true) + '-init');
                  var animData = getAnimationData(settings.animation);
          Severity: Minor
          Found in r8conf2016/js/foundation/foundation.reveal.js - About 1 hr to fix

            Avoid too many return statements within this function.
            Open

                  return el.show();
            Severity: Major
            Found in r8conf2016/js/foundation/foundation.reveal.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    return el.hide();
              Severity: Major
              Found in r8conf2016/js/foundation/foundation.reveal.js - About 30 mins to fix

                There are no issues that match your filters.

                Category
                Status