errbotio/errbot

View on GitHub
docs/_static/fancybox/jquery.fancybox.js

Summary

Maintainability
F
1 wk
Test Coverage

File jquery.fancybox.js has 1458 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * fancyBox - jQuery Plugin
 * version: 2.1.5 (Fri, 14 Jun 2013)
 * @requires jQuery v1.6 or later
 *
Severity: Major
Found in docs/_static/fancybox/jquery.fancybox.js - About 3 days to fix

    Function _setDimension has 168 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            _setDimension: function () {
                var viewport = F.getViewport(),
                    steps = 0,
                    canShrink = false,
                    canExpand = false,
    Severity: Major
    Found in docs/_static/fancybox/jquery.fancybox.js - About 6 hrs to fix

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

              open: function (group, opts) {
                  if (!group) {
                      return;
                  }
      
      
      Severity: Major
      Found in docs/_static/fancybox/jquery.fancybox.js - About 3 hrs to fix

        Function _start has 98 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                _start: function (index) {
                    var coming = {},
                        obj,
                        href,
                        type,
        Severity: Major
        Found in docs/_static/fancybox/jquery.fancybox.js - About 3 hrs to fix

          Function _afterLoad has 86 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  _afterLoad: function () {
                      var coming = F.coming,
                          previous = F.current,
                          placeholder = 'fancybox-placeholder',
                          current,
          Severity: Major
          Found in docs/_static/fancybox/jquery.fancybox.js - About 3 hrs to fix

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

                    bindEvents: function () {
                        var current = F.current,
                            keys;
            
                        if (!current) {
            Severity: Major
            Found in docs/_static/fancybox/jquery.fancybox.js - About 2 hrs to fix

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

                      _afterZoomIn: function () {
                          var current = F.current;
              
                          if (!current) {
                              return;
              Severity: Minor
              Found in docs/_static/fancybox/jquery.fancybox.js - About 1 hr to fix

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

                        getOrigPosition: function () {
                            var current = F.current,
                                element = current.element,
                                orig = current.orig,
                                pos = {},
                Severity: Minor
                Found in docs/_static/fancybox/jquery.fancybox.js - About 1 hr to fix

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

                          beforeShow: function (opts) {
                              var current = F.current,
                                  text = current.title,
                                  type = opts.type,
                                  title,
                  Severity: Minor
                  Found in docs/_static/fancybox/jquery.fancybox.js - About 1 hr to fix

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

                            play: function (action) {
                                var clear = function () {
                                        clearTimeout(F.player.timer);
                                    },
                                    set = function () {
                    Severity: Minor
                    Found in docs/_static/fancybox/jquery.fancybox.js - About 1 hr to fix

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

                          $.fn.fancybox = function (options) {
                              var index,
                                  that = $(this),
                                  selector = this.selector || '',
                                  run = function (e) {
                      Severity: Minor
                      Found in docs/_static/fancybox/jquery.fancybox.js - About 1 hr to fix

                        Function changeIn has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                changeIn: function () {
                                    var current = F.current,
                                        effect = current.nextEffect,
                                        startPos = current.pos,
                                        endPos = { opacity: 1 },
                        Severity: Minor
                        Found in docs/_static/fancybox/jquery.fancybox.js - About 1 hr to fix

                          Consider simplifying this complex logical expression.
                          Open

                                              if (!e.ctrlKey && !e.altKey && !e.shiftKey && !e.metaKey && !(target && (target.type || $(target).is('[contenteditable]')))) {
                                                  $.each(keys, function (i, val) {
                                                      if (current.group.length > 1 && val[ code ] !== undefined) {
                                                          F[ i ](val[ code ]);
                          
                          
                          Severity: Major
                          Found in docs/_static/fancybox/jquery.fancybox.js - About 1 hr to fix

                            Consider simplifying this complex logical expression.
                            Open

                                            if (!(e.ctrlKey || e.altKey || e.shiftKey || e.metaKey) && !what.is('.fancybox-wrap')) {
                                                relType = options.groupAttr || 'data-fancybox-group';
                                                relVal = what.attr(relType);
                            
                                                if (!relVal) {
                            Severity: Major
                            Found in docs/_static/fancybox/jquery.fancybox.js - About 40 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                              return F._error('href');
                              Severity: Major
                              Found in docs/_static/fancybox/jquery.fancybox.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                                    return F._error('content');
                                Severity: Major
                                Found in docs/_static/fancybox/jquery.fancybox.js - About 30 mins to fix

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                              var current = F.current,
                                                  viewport = F.getViewport(),
                                                  margin = current.margin,
                                                  width = F.wrap.width() + margin[1] + margin[3],
                                                  height = F.wrap.height() + margin[0] + margin[2],
                                  Severity: Major
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 4 hrs to fix
                                  docs/_static/fancybox/jquery.fancybox.pack.js on lines 306..306

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 125.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                              img.onload = function () {
                                                  this.onload = this.onerror = null;
                                  
                                                  F.coming.width = this.width / F.opts.pixelRatio;
                                                  F.coming.height = this.height / F.opts.pixelRatio;
                                  Severity: Major
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 3 hrs to fix
                                  docs/_static/fancybox/jquery.fancybox.pack.js on lines 178..183

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 107.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                              $.scrollbarWidth = function () {
                                                  var parent = $('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo('body'),
                                                      child = parent.children(),
                                                      width = child.innerWidth() - child.height(99).innerWidth();
                                  
                                  
                                  Severity: Major
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 2 hrs to fix
                                  docs/_static/fancybox/jquery.fancybox.pack.js on lines 447..451

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 89.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                              $(coming.wrap).bind('onReset', function () {
                                                  try {
                                                      $(this).find('iframe').hide().attr('src', '//about:blank').end().empty();
                                                  } catch (e) {
                                                  }
                                  Severity: Major
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 2 hrs to fix
                                  docs/_static/fancybox/jquery.fancybox.pack.js on lines 201..206

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 83.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                              var coming = F.coming,
                                                  iframe = $(coming.tpl.iframe.replace(/\{rnd\}/g, new Date().getTime()))
                                                      .attr('scrolling', isTouch ? 'auto' : coming.iframe.scrolling)
                                                      .attr('src', coming.href);
                                  Severity: Major
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 2 hrs to fix
                                  docs/_static/fancybox/jquery.fancybox.pack.js on lines 200..200

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 82.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                              pos = {
                                                  top: getValue(pos.top - hPadding * current.topRatio),
                                                  left: getValue(pos.left - wPadding * current.leftRatio),
                                                  width: getValue(width + wPadding),
                                                  height: getValue(height + hPadding)
                                  Severity: Major
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 2 hrs to fix
                                  docs/_static/fancybox/jquery.fancybox.pack.js on lines 333..333

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 82.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                          next: function (direction) {
                                              var current = F.current;
                                  
                                              if (current) {
                                                  if (!isString(direction)) {
                                  Severity: Major
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 2 hrs to fix
                                  docs/_static/fancybox/jquery.fancybox.js on lines 486..496

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 80.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                          prev: function (direction) {
                                              var current = F.current;
                                  
                                              if (current) {
                                                  if (!isString(direction)) {
                                  Severity: Major
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 2 hrs to fix
                                  docs/_static/fancybox/jquery.fancybox.js on lines 473..483

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 80.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                              coming.wrap = $(coming.tpl.wrap).addClass('fancybox-' + (isTouch ? 'mobile' : 'desktop') + ' fancybox-type-' + type + ' fancybox-tmp ' + coming.wrapCSS).appendTo(coming.parent || 'body');
                                  Severity: Major
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 2 hrs to fix
                                  docs/_static/fancybox/jquery.fancybox.pack.js on lines 162..162

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 76.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                              var current = F.current,
                                                  element = current.element,
                                                  orig = current.orig,
                                                  pos = {},
                                                  width = 50,
                                  Severity: Major
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 2 hrs to fix
                                  docs/_static/fancybox/jquery.fancybox.pack.js on lines 328..328

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 75.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                              canExpand = current.aspectRatio ? (width < origMaxWidth && height < origMaxHeight && width < origWidth && height < origHeight) : ((width < origMaxWidth || height < origMaxHeight) && (width < origWidth || height < origHeight));
                                  Severity: Major
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 1 hr to fix
                                  docs/_static/fancybox/jquery.fancybox.pack.js on lines 302..302

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 73.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                              var group = F.group,
                                                  current = F.current,
                                                  len = group.length,
                                                  cnt = current.preload ? Math.min(current.preload, len - 1) : 0,
                                                  item,
                                  Severity: Major
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 1 hr to fix
                                  docs/_static/fancybox/jquery.fancybox.pack.js on lines 216..217

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 67.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                                      $.each(current.swf, function (name, val) {
                                                          content += '<param name="' + name + '" value="' + val + '"></param>';
                                                          embed += ' ' + name + '="' + val + '"';
                                                      });
                                  Severity: Major
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 1 hr to fix
                                  docs/_static/fancybox/jquery.fancybox.pack.js on lines 244..247

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 67.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                                  $(current.tpl.closeBtn).appendTo(F.skin).bind('click.fb', function (e) {
                                                      e.preventDefault();
                                  
                                                      F.close();
                                                  });
                                  Severity: Major
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 1 hr to fix
                                  docs/_static/fancybox/jquery.fancybox.pack.js on lines 316..319

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 60.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                              $.extend(F, {
                                                  wrap: current.wrap,
                                                  skin: current.skin,
                                                  outer: current.outer,
                                                  inner: current.inner,
                                  Severity: Major
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 1 hr to fix
                                  docs/_static/fancybox/jquery.fancybox.pack.js on lines 228..229

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 59.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                              F.wrap.animate(endPos, {
                                                  duration: effect === 'none' ? 0 : current.closeSpeed,
                                                  easing: current.closeEasing,
                                                  step: elastic ? this.step : null,
                                                  complete: F._afterZoomOut
                                  Severity: Major
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 1 hr to fix
                                  docs/_static/fancybox/jquery.fancybox.js on lines 1600..1605

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 56.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                              F.wrap.css(startPos).animate(endPos, {
                                                  duration: effect === 'none' ? 0 : current.openSpeed,
                                                  easing: current.openEasing,
                                                  step: elastic ? this.step : null,
                                                  complete: F._afterZoomIn
                                  Severity: Major
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 1 hr to fix
                                  docs/_static/fancybox/jquery.fancybox.js on lines 1622..1627

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 56.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                              $.each(["Top", "Right", "Bottom", "Left"], function (i, v) {
                                                  coming.skin.css('padding' + v, getValue(coming.padding[ i ]));
                                              });
                                  Severity: Major
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 1 hr to fix
                                  docs/_static/fancybox/jquery.fancybox.pack.js on lines 164..166

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 56.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                              $.extend(coming, {
                                                  skin: $('.fancybox-skin', coming.wrap),
                                                  outer: $('.fancybox-outer', coming.wrap),
                                                  inner: $('.fancybox-inner', coming.wrap)
                                              });
                                  Severity: Major
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 1 hr to fix
                                  docs/_static/fancybox/jquery.fancybox.pack.js on lines 163..163

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 55.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                              tpl: {
                                                  wrap: '<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',
                                                  image: '<img class="fancybox-image" src="{href}" alt="" />',
                                                  iframe: '<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen' + (IE ? ' allowtransparency="true"' : '') + '></iframe>',
                                                  error: '<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',
                                  Severity: Minor
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 50 mins to fix
                                  docs/_static/fancybox/jquery.fancybox.pack.js on lines 20..21

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 52.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 4 locations. Consider refactoring.
                                  Open

                                              rez.left = getValue(Math.max(rez.left, rez.left + ((viewport.w - width) * current.leftRatio)));
                                  Severity: Major
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 3 other locations - About 50 mins to fix
                                  docs/_static/fancybox/jquery.fancybox.js on lines 1416..1416
                                  docs/_static/fancybox/jquery.fancybox.pack.js on lines 308..308
                                  docs/_static/fancybox/jquery.fancybox.pack.js on lines 309..309

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 52.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 4 locations. Consider refactoring.
                                  Open

                                              rez.top = getValue(Math.max(rez.top, rez.top + ((viewport.h - height) * current.topRatio)));
                                  Severity: Major
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 3 other locations - About 50 mins to fix
                                  docs/_static/fancybox/jquery.fancybox.js on lines 1417..1417
                                  docs/_static/fancybox/jquery.fancybox.pack.js on lines 308..308
                                  docs/_static/fancybox/jquery.fancybox.pack.js on lines 309..309

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 52.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                                  F.wrap.css(startPos).animate(endPos, {
                                                      duration: current.nextSpeed,
                                                      easing: current.nextEasing,
                                                      complete: F._afterZoomIn
                                                  });
                                  Severity: Minor
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 45 mins to fix
                                  docs/_static/fancybox/jquery.fancybox.pack.js on lines 354..354

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 50.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                          $.extend(F.defaults, {
                                              scrollbarWidth: $.scrollbarWidth(),
                                              fixed: $.support.fixedPosition,
                                              parent: $('body')
                                          });
                                  Severity: Minor
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 45 mins to fix
                                  docs/_static/fancybox/jquery.fancybox.pack.js on lines 460..460

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 50.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                                  if (direction === 'down' || direction === 'right') {
                                                      startPos[ field ] = getValue(getScalar(startPos[ field ]) - distance);
                                                      endPos[ field ] = '+=' + distance + 'px';
                                  
                                                  } else {
                                  Severity: Minor
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 40 mins to fix
                                  docs/_static/fancybox/jquery.fancybox.js on lines 1648..1651

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 49.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                                  } else {
                                                      startPos[ field ] = getValue(getScalar(startPos[ field ]) + distance);
                                                      endPos[ field ] = '-=' + distance + 'px';
                                                  }
                                  Severity: Minor
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 40 mins to fix
                                  docs/_static/fancybox/jquery.fancybox.js on lines 1644..1648

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 49.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                                      if (!$(e.target).is('a') && !$(e.target).parent().is('a')) {
                                  Severity: Minor
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 40 mins to fix
                                  docs/_static/fancybox/jquery.fancybox.pack.js on lines 314..314

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 48.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                              W.bind('orientationchange.fb' + (isTouch ? '' : ' resize.fb') + (current.autoCenter && !current.locked ? ' scroll.fb' : ''), F.update);
                                  Severity: Minor
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 40 mins to fix
                                  docs/_static/fancybox/jquery.fancybox.pack.js on lines 106..106

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 48.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                                  ratio = fx.end === fx.start ? 1 : (now - fx.start) / (fx.end - fx.start);
                                  Severity: Minor
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 35 mins to fix
                                  docs/_static/fancybox/jquery.fancybox.pack.js on lines 338..338

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 47.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                                      if (F.current && (F.current.loop || F.current.index < F.group.length - 1)) {
                                                          F.player.isActive = true;
                                  
                                                          D.bind({
                                                              'onCancel.player beforeClose.player': stop,
                                  Severity: Minor
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 35 mins to fix
                                  docs/_static/fancybox/jquery.fancybox.pack.js on lines 59..59

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 46.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                              img.onerror = function () {
                                                  this.onload = this.onerror = null;
                                  
                                                  F._error('image');
                                              };
                                  Severity: Minor
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 35 mins to fix
                                  docs/_static/fancybox/jquery.fancybox.pack.js on lines 184..188

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 46.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                              this.overlay = $('<div class="fancybox-overlay"></div>').appendTo(F.coming ? F.coming.parent : opts.parent);
                                  Severity: Minor
                                  Found in docs/_static/fancybox/jquery.fancybox.js and 1 other location - About 30 mins to fix
                                  docs/_static/fancybox/jquery.fancybox.pack.js on lines 366..367

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 45.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  There are no issues that match your filters.

                                  Category
                                  Status