mambax7/alumni-26x

View on GitHub
media/jquery/tablesorter-master/js/extras/semver-mod.js

Summary

Maintainability
F
1 mo
Test Coverage

File semver-mod.js has 863 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*! Modified semver.js for node.js (v4.3.3, 3/27/2015) *//*
 semver-mod.js by R.Garrison (@Mottie)
 semver.js by @isaacs: https://github.com/isaacs/node-semver
 ( all modifications have been labeled )
 */
Severity: Major
Found in media/jquery/tablesorter-master/js/extras/semver-mod.js - About 2 days to fix

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

    SemVer.prototype.inc = function(release, identifier) {
      switch (release) {
        case 'premajor':
          this.prerelease.length = 0;
          this.patch = 0;
    Severity: Major
    Found in media/jquery/tablesorter-master/js/extras/semver-mod.js - About 2 hrs to fix

      Function outside has 48 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function outside(version, range, hilo, loose) {
        version = new SemVer(version, loose);
        range = new Range(range, loose);
      
        var gtfn, ltefn, ltfn, comp, ecomp;
      Severity: Minor
      Found in media/jquery/tablesorter-master/js/extras/semver-mod.js - About 1 hr to fix

        Function replaceXRange has 47 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function replaceXRange(comp, loose) {
          comp = comp.trim();
          var r = loose ? re[XRANGELOOSE] : re[XRANGE];
          return comp.replace(r, function(ret, gtlt, M, m, p, pr) {
            debug('xRange', comp, ret, gtlt, M, m, p, pr);
        Severity: Minor
        Found in media/jquery/tablesorter-master/js/extras/semver-mod.js - About 1 hr to fix

          Function replaceCaret has 44 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function replaceCaret(comp, loose) {
            debug('caret', comp, loose);
            var r = loose ? re[CARETLOOSE] : re[CARET];
            return comp.replace(r, function(_, M, m, p, pr) {
              debug('caret', comp, _, M, m, p, pr);
          Severity: Minor
          Found in media/jquery/tablesorter-master/js/extras/semver-mod.js - About 1 hr to fix

            Function hyphenReplace has 13 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            function hyphenReplace($0,
                                   from, fM, fm, fp, fpr, fb,
                                   to, tM, tm, tp, tpr, tb) {
            Severity: Major
            Found in media/jquery/tablesorter-master/js/extras/semver-mod.js - About 1 hr to fix

              Function SemVer has 40 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function SemVer(version, loose) {
                if (version instanceof SemVer) {
                  if (version.loose === loose)
                    return version;
                  else
              Severity: Minor
              Found in media/jquery/tablesorter-master/js/extras/semver-mod.js - About 1 hr to fix

                Avoid deeply nested control flow statements.
                Open

                          if (v1[key] !== v2[key]) {
                            return 'pre'+key;
                          }
                Severity: Major
                Found in media/jquery/tablesorter-master/js/extras/semver-mod.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                          if (xm)
                            M = +M + 1
                          else
                            m = +m + 1
                  Severity: Major
                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js - About 45 mins to fix

                    Avoid too many return statements within this function.
                    Open

                      return true;
                    Severity: Major
                    Found in media/jquery/tablesorter-master/js/extras/semver-mod.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                            return 1;
                      Severity: Major
                      Found in media/jquery/tablesorter-master/js/extras/semver-mod.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                            return null;
                        Severity: Major
                        Found in media/jquery/tablesorter-master/js/extras/semver-mod.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                return compareIdentifiers(a, b);
                          Severity: Major
                          Found in media/jquery/tablesorter-master/js/extras/semver-mod.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                  return -1;
                            Severity: Major
                            Found in media/jquery/tablesorter-master/js/extras/semver-mod.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                return true;
                              Severity: Major
                              Found in media/jquery/tablesorter-master/js/extras/semver-mod.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                    return new SemVer(version, loose);
                                Severity: Major
                                Found in media/jquery/tablesorter-master/js/extras/semver-mod.js - About 30 mins to fix

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

                                  SemVer.prototype.inc = function(release, identifier) {
                                    switch (release) {
                                      case 'premajor':
                                        this.prerelease.length = 0;
                                        this.patch = 0;
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 4 days to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 394..487

                                  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 695.

                                  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

                                  function replaceCaret(comp, loose) {
                                    debug('caret', comp, loose);
                                    var r = loose ? re[CARETLOOSE] : re[CARET];
                                    return comp.replace(r, function(_, M, m, p, pr) {
                                      debug('caret', comp, _, M, m, p, pr);
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 3 days to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 882..929

                                  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 665.

                                  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

                                  function SemVer(version, loose) {
                                    if (version instanceof SemVer) {
                                      if (version.loose === loose)
                                        return version;
                                      else
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 2 days to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 274..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 504.

                                  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

                                  function replaceXRange(comp, loose) {
                                    comp = comp.trim();
                                    var r = loose ? re[XRANGELOOSE] : re[XRANGE];
                                    return comp.replace(r, function(ret, gtlt, M, m, p, pr) {
                                      debug('xRange', comp, ret, gtlt, M, m, p, pr);
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 2 days to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 938..1000

                                  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 501.

                                  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

                                  function outside(version, range, hilo, loose) {
                                    version = new SemVer(version, loose);
                                    range = new Range(range, loose);
                                  
                                    var gtfn, ltefn, ltfn, comp, ecomp;
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 2 days to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 1134..1198

                                  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 448.

                                  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

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

                                  Range.prototype.parseRange = function(range) {
                                    var loose = this.loose;
                                    range = range.trim();
                                    debug('range', range, loose);
                                    // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 2 days to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 758..797

                                  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 379.

                                  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

                                  function replaceTilde(comp, loose) {
                                    var r = loose ? re[TILDELOOSE] : re[TILDE];
                                    return comp.replace(r, function(_, M, m, p, pr) {
                                      debug('tilde', comp, _, M, m, p, pr);
                                      var ret;
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 1 day to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 841..868

                                  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 354.

                                  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

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

                                  function cmp(a, op, b, loose) {
                                    var ret;
                                    switch (op) {
                                      case '===':
                                        if (typeof a === 'object') a = a.version;
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 1 day to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 629..651

                                  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 269.

                                  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

                                  SemVer.prototype.comparePre = function(other) {
                                    if (!(other instanceof SemVer))
                                      other = new SemVer(other, this.loose);
                                  
                                    // NOT having a prerelease is > having one
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 1 day to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 362..390

                                  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 267.

                                  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

                                  function hyphenReplace($0,
                                                         from, fM, fm, fp, fpr, fb,
                                                         to, tM, tm, tp, tpr, tb) {
                                  
                                    if (isX(fM))
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 1 day to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 1015..1040

                                  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 265.

                                  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

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

                                  function testSet(set, version) {
                                    for (var i = 0; i < set.length; i++) {
                                      if (!set[i].test(version))
                                        return false;
                                    }
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 1 day to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 1058..1089

                                  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 243.

                                  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

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

                                  function diff(version1, version2) {
                                    if (eq(version1, version2)) {
                                      return null;
                                    } else {
                                      var v1 = parse(version1);
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 1 day to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 504..528

                                  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 209.

                                  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

                                  function Range(range, loose) {
                                    if ((range instanceof Range) && range.loose === loose)
                                      return range;
                                  
                                    if (!(this instanceof Range))
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 7 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 718..741

                                  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 190.

                                  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

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

                                  Comparator.prototype.parse = function(comp) {
                                    var r = this.loose ? re[COMPARATORLOOSE] : re[COMPARATOR];
                                    var m = comp.match(r);
                                  
                                    if (!m)
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 6 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 678..694

                                  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 166.

                                  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

                                  function Comparator(comp, loose) {
                                    if (comp instanceof Comparator) {
                                      if (comp.loose === loose)
                                        return comp;
                                      else
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 6 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 654..675

                                  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 156.

                                  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

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

                                  /* nomin */ if (typeof process === 'object' &&
                                      /* nomin */ process.env &&
                                      /* nomin */ process.env.NODE_DEBUG &&
                                      /* nomin */ /\bsemver\b/i.test(process.env.NODE_DEBUG))
                                    /* nomin */ debug = function() {
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 6 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 7..17

                                  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 156.

                                  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

                                  function compareIdentifiers(a, b) {
                                    var anum = numeric.test(a);
                                    var bnum = numeric.test(b);
                                  
                                    if (anum && bnum) {
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 4 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 533..547

                                  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 120.

                                  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

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

                                  Range.prototype.test = function(version) {
                                    if (!version)
                                      return false;
                                  
                                    if (typeof version === 'string')
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 3 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 1044..1056

                                  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 112.

                                  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

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

                                  function parse(version, loose) {
                                    if (version instanceof SemVer)
                                      return version;
                                  
                                    if (typeof version !== 'string')
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 3 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 238..257

                                  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 112.

                                  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

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

                                  SemVer.prototype.format = function() {
                                    this.version = this.major + '.' + this.minor + '.' + this.patch;
                                    if (this.prerelease.length)
                                      this.version += '-' + this.prerelease.join('.');
                                    return this.version;
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 3 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 330..335

                                  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 105.

                                  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

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

                                  function parseComparator(comp, loose) {
                                    debug('comp', comp);
                                    comp = replaceCarets(comp, loose);
                                    debug('caret', comp);
                                    comp = replaceTildes(comp, loose);
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 3 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 812..823

                                  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 105.

                                  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

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

                                  Comparator.prototype.test = function(version) {
                                    debug('Comparator.test', version, this.loose);
                                  
                                    if (this.semver === ANY)
                                      return true;
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 3 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 704..714

                                  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 97.

                                  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

                                  SemVer.prototype.compareMain = function(other) {
                                    if (!(other instanceof SemVer))
                                      other = new SemVer(other, this.loose);
                                  
                                    return compareIdentifiers(this.major, other.major) ||
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 3 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 353..360

                                  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 97.

                                  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

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

                                  Range.prototype.format = function() {
                                    this.range = this.set.map(function(comps) {
                                      return comps.join(' ').trim();
                                    }).join('||').trim();
                                    return this.range;
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 2 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 747..752

                                  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

                                  SemVer.prototype.compare = function(other) {
                                    debug('SemVer.compare', this.version, this.loose, other);
                                    if (!(other instanceof SemVer))
                                      other = new SemVer(other, this.loose);
                                  
                                  
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 2 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 345..351

                                  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 88.

                                  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

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

                                  function toComparators(range, loose) {
                                    return new Range(range, loose).set.map(function(comp) {
                                      return comp.map(function(c) {
                                        return c.value;
                                      }).join(' ').trim().split(' ');
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 2 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 801..807

                                  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 87.

                                  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

                                  src[XRANGEPLAIN] = '[v=\\s]*(' + src[XRANGEIDENTIFIER] + ')' +
                                                     '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
                                                     '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
                                                     '(?:' + src[PRERELEASE] + ')?' +
                                                     src[BUILD] + '?' +
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 3 other locations - About 2 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 160..165
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 141..146
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 149..154

                                  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 87.

                                  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

                                  src[XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
                                                          '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
                                                          '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
                                                          '(?:' + src[PRERELEASELOOSE] + ')?' +
                                                          src[BUILD] + '?' +
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 3 other locations - About 2 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 152..157
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 141..146
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 149..154

                                  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 87.

                                  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

                                  function inc(version, release, loose, identifier) {
                                    if (typeof(loose) === 'string') {
                                      identifier = loose;
                                      loose = undefined;
                                    }
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 2 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 490..501

                                  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 77.

                                  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

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

                                  function maxSatisfying(versions, range, loose) {
                                    return versions.filter(function(version) {
                                      return satisfies(version, range, loose);
                                    }).sort(function(a, b) {
                                      return rcompare(a, b, loose);
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 1 hr to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 1102..1108

                                  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 69.

                                  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

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

                                  for (var i = 0; i < R; i++) {
                                    debug(i, src[i]);
                                    if (!re[i])
                                      re[i] = new RegExp(src[i]);
                                  }
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 1 hr to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 231..235

                                  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 4 locations. Consider refactoring.
                                  Open

                                  function replaceCarets(comp, loose) {
                                    return comp.trim().split(/\s+/).map(function(comp) {
                                      return replaceCaret(comp, loose);
                                    }).join(' ');
                                  }
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 3 other locations - About 1 hr to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 847..851
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 835..839
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 876..880

                                  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 65.

                                  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

                                  function replaceTildes(comp, loose) {
                                    return comp.trim().split(/\s+/).map(function(comp) {
                                      return replaceTilde(comp, loose);
                                    }).join(' ');
                                  }
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 3 other locations - About 1 hr to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 888..892
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 835..839
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 876..880

                                  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 65.

                                  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

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

                                  function replaceXRanges(comp, loose) {
                                    debug('replaceXRanges', comp, loose);
                                    return comp.split(/\s+/).map(function(comp) {
                                      return replaceXRange(comp, loose);
                                    }).join(' ');
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 1 hr to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 931..936

                                  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

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

                                  src[MAINVERSIONLOOSE] = '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
                                                          '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
                                                          '(' + src[NUMERICIDENTIFIERLOOSE] + ')';
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 1 hr to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 60..62

                                  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 58.

                                  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

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

                                  src[MAINVERSION] = '(' + src[NUMERICIDENTIFIER] + ')\\.' +
                                                     '(' + src[NUMERICIDENTIFIER] + ')\\.' +
                                                     '(' + src[NUMERICIDENTIFIER] + ')';
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 1 hr to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 55..57

                                  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

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

                                  function replaceStars(comp, loose) {
                                    debug('replaceStars', comp, loose);
                                    // Looseness is ignored here.  star is always as loose as it gets!
                                    return comp.trim().replace(re[STAR], '');
                                  }
                                  Severity: Major
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 1 hr to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 1004..1008

                                  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

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

                                  function satisfies(version, range, loose) {
                                    try {
                                      range = new Range(range, loose);
                                    } catch (er) {
                                      return false;
                                  Severity: Minor
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 50 mins to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 1092..1099

                                  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 51.

                                  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

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

                                  src[HYPHENRANGELOOSE] = '^\\s*(' + src[XRANGEPLAINLOOSE] + ')' +
                                                          '\\s+-\\s+' +
                                                          '(' + src[XRANGEPLAINLOOSE] + ')' +
                                                          '\\s*$';
                                  Severity: Minor
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 40 mins to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 220..223

                                  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

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

                                  function validRange(range, loose) {
                                    try {
                                      // Return '*' instead of '' so that truthiness works.
                                      // This will throw if it's invalid anyway
                                      return new Range(range, loose).range || '*';
                                  Severity: Minor
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 40 mins to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 1111..1119

                                  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

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

                                  src[HYPHENRANGE] = '^\\s*(' + src[XRANGEPLAIN] + ')' +
                                                     '\\s+-\\s+' +
                                                     '(' + src[XRANGEPLAIN] + ')' +
                                                     '\\s*$';
                                  Severity: Minor
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 35 mins to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 214..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 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

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

                                  src[COMPARATORTRIM] = '(\\s*)' + src[GTLT] +
                                                        '\\s*(' + LOOSEPLAIN + '|' + src[XRANGEPLAIN] + ')';
                                  Severity: Minor
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 30 mins to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 201..202

                                  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

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

                                  function clean(version, loose) {
                                    var s = parse(version.trim().replace(/^[=v]+/, ''), loose);
                                    return s ? s.version : null;
                                  }
                                  Severity: Minor
                                  Found in media/jquery/tablesorter-master/js/extras/semver-mod.js and 1 other location - About 30 mins to fix
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 267..270

                                  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