mambax7/alumni-26x

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

Summary

Maintainability
F
1 mo
Test Coverage

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

// export the class if we are in a Node-like system.
if (typeof module === 'object' && module.exports === exports)
  exports = module.exports = SemVer;

// The debug function is excluded entirely from the minified version.
Severity: Major
Found in media/jquery/tablesorter-master/js/extras/semver.js - About 2 days to fix

    Function inc has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring.
    Open

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

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function diff has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
    Open

    function diff(version1, version2) {
      if (eq(version1, version2)) {
        return null;
      } else {
        var v1 = parse(version1);
    Severity: Minor
    Found in media/jquery/tablesorter-master/js/extras/semver.js - About 3 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function SemVer has a Cognitive Complexity of 21 (exceeds 5 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.js - About 2 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    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.js - About 2 hrs to fix

      Function testSet has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
      Open

      function testSet(set, version) {
        for (var i = 0; i < set.length; i++) {
          if (!set[i].test(version))
            return false;
        }
      Severity: Minor
      Found in media/jquery/tablesorter-master/js/extras/semver.js - About 2 hrs to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      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.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.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.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.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.js - About 1 hr to fix

                Function compareIdentifiers has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                Open

                function compareIdentifiers(a, b) {
                  var anum = numeric.test(a);
                  var bnum = numeric.test(b);
                
                  if (anum && bnum) {
                Severity: Minor
                Found in media/jquery/tablesorter-master/js/extras/semver.js - About 1 hr to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                Function comparePre has a Cognitive Complexity of 11 (exceeds 5 allowed). 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: Minor
                Found in media/jquery/tablesorter-master/js/extras/semver.js - About 1 hr to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                Function outside has a Cognitive Complexity of 11 (exceeds 5 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.js - About 1 hr to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                Function cmp has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                Open

                function cmp(a, op, b, loose) {
                  var ret;
                  switch (op) {
                    case '===':
                      if (typeof a === 'object') a = a.version;
                Severity: Minor
                Found in media/jquery/tablesorter-master/js/extras/semver.js - About 55 mins to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                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.js - About 45 mins 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.js - About 45 mins to fix

                    Function hyphenReplace has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

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

                    Cognitive Complexity

                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                    A method's cognitive complexity is based on a few simple rules:

                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                    • Code is considered more complex for each "break in the linear flow of the code"
                    • Code is considered more complex when "flow breaking structures are nested"

                    Further reading

                    Avoid too many return statements within this function.
                    Open

                      return true;
                    Severity: Major
                    Found in media/jquery/tablesorter-master/js/extras/semver.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.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.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.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.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.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.js - About 30 mins to fix

                                  Function parse has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                  function parse(version, loose) {
                                    if (version instanceof SemVer)
                                      return version;
                                  
                                    if (typeof version !== 'string')
                                  Severity: Minor
                                  Found in media/jquery/tablesorter-master/js/extras/semver.js - About 25 mins to fix

                                  Cognitive Complexity

                                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                  A method's cognitive complexity is based on a few simple rules:

                                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                  • Code is considered more complex for each "break in the linear flow of the code"
                                  • Code is considered more complex when "flow breaking structures are nested"

                                  Further reading

                                  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.js and 1 other location - About 4 days to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 406..499

                                  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.js and 1 other location - About 3 days to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 894..941

                                  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.js and 1 other location - About 2 days to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 286..340

                                  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.js and 1 other location - About 2 days to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 950..1012

                                  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.js and 1 other location - About 2 days to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 1146..1210

                                  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.js and 1 other location - About 2 days to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 770..809

                                  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.js and 1 other location - About 1 day to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 853..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 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.js and 1 other location - About 1 day to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 641..663

                                  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.js and 1 other location - About 1 day to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 374..402

                                  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.js and 1 other location - About 1 day to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 1027..1052

                                  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.js and 1 other location - About 1 day to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 1070..1101

                                  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.js and 1 other location - About 1 day to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 516..540

                                  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.js and 1 other location - About 7 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 730..753

                                  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.js and 1 other location - About 6 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 690..706

                                  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

                                  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.js and 1 other location - About 6 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 18..28

                                  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 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.js and 1 other location - About 6 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 666..687

                                  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.js and 1 other location - About 4 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 545..559

                                  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.js and 1 other location - About 3 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 1056..1068

                                  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.js and 1 other location - About 3 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 249..268

                                  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 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.js and 1 other location - About 3 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 824..835

                                  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

                                  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.js and 1 other location - About 3 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 342..347

                                  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.js and 1 other location - About 3 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 716..726

                                  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.js and 1 other location - About 3 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 365..372

                                  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.js and 1 other location - About 2 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 759..764

                                  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.js and 1 other location - About 2 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 357..363

                                  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.js and 1 other location - About 2 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 813..819

                                  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.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-mod.js on lines 160..165
                                  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.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-mod.js on lines 160..165
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 141..146

                                  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.js and 1 other location - About 2 hrs to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 502..513

                                  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.js and 1 other location - About 1 hr to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 1114..1120

                                  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.js and 1 other location - About 1 hr to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 242..246

                                  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 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.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-mod.js on lines 888..892
                                  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 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.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-mod.js on lines 888..892
                                  media/jquery/tablesorter-master/js/extras/semver.js on lines 835..839

                                  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.js and 1 other location - About 1 hr to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 943..948

                                  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.js and 1 other location - About 1 hr to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 71..73

                                  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.js and 1 other location - About 1 hr to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 66..68

                                  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.js and 1 other location - About 1 hr to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 1016..1020

                                  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.js and 1 other location - About 50 mins to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 1104..1111

                                  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.js and 1 other location - About 40 mins to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 231..234

                                  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.js and 1 other location - About 40 mins to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 1123..1131

                                  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.js and 1 other location - About 35 mins to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 225..228

                                  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

                                  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.js and 1 other location - About 30 mins to fix
                                  media/jquery/tablesorter-master/js/extras/semver-mod.js on lines 278..281

                                  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

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

                                  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