cryptosphere/cryptosphere

View on GitHub

Showing 172 of 172 total issues

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

    title = $e.attr('data-original-title')
      || (typeof o.title == 'function' ? o.title.call($e[0]) :  o.title)
Severity: Minor
Found in webui/js/bootstrap.js and 1 other location - About 40 mins to fix
webui/js/bootstrap.js on lines 1534..1537

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

                cur = elem.nodeType === 1 && ( elem.className ?
                    ( " " + elem.className + " " ).replace( rclass, " " ) :
                    ""
                );
Severity: Minor
Found in webui/js/jquery-2.0.3.js and 1 other location - About 40 mins to fix
webui/js/jquery-2.0.3.js on lines 3842..3845

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

    return $e.attr('data-content')
      || (typeof o.content == 'function' ?
            o.content.call($e[0]) :
            o.content)
Severity: Minor
Found in webui/js/bootstrap.js and 1 other location - About 40 mins to fix
webui/js/bootstrap.js on lines 1388..1389

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

Consider simplifying this complex logical expression.
Open

      if (autoPlace) {
        var $parent = this.$element.parent()

        var orgPlacement = placement
        var docScroll    = document.documentElement.scrollTop || document.body.scrollTop
Severity: Major
Found in webui/js/bootstrap.js - About 40 mins to fix

    Consider simplifying this complex logical expression.
    Open

        if ( support.matchesSelector && documentIsHTML &&
            ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
            ( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
    
            try {
    Severity: Major
    Found in webui/js/jquery-2.0.3.js - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

              if ( s.crossDomain == null ) {
                  parts = rurl.exec( s.url.toLowerCase() );
                  s.crossDomain = !!( parts &&
                      ( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] ||
                          ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? "80" : "443" ) ) !==
      Severity: Major
      Found in webui/js/jquery-2.0.3.js - About 40 mins to fix

        Consider simplifying this complex logical expression.
        Open

                    if ( matcher[ expando ] ) {
                        // Find the next relative operator (if any) for proper handling
                        j = ++i;
                        for ( ; j < len; j++ ) {
                            if ( Expr.relative[ tokens[j].type ] ) {
        Severity: Major
        Found in webui/js/jquery-2.0.3.js - About 40 mins to fix

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

            $.fn.affix.noConflict = function () {
              $.fn.affix = old
              return this
            }
          Severity: Major
          Found in webui/js/bootstrap.js and 8 other locations - About 40 mins to fix
          webui/js/bootstrap.js on lines 151..154
          webui/js/bootstrap.js on lines 256..259
          webui/js/bootstrap.js on lines 458..461
          webui/js/bootstrap.js on lines 642..645
          webui/js/bootstrap.js on lines 810..813
          webui/js/bootstrap.js on lines 1044..1047
          webui/js/bootstrap.js on lines 1720..1723
          webui/js/bootstrap.js on lines 1858..1861

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 48.

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

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

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

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

          Refactorings

          Further Reading

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

            $.fn.button.noConflict = function () {
              $.fn.button = old
              return this
            }
          Severity: Major
          Found in webui/js/bootstrap.js and 8 other locations - About 40 mins to fix
          webui/js/bootstrap.js on lines 151..154
          webui/js/bootstrap.js on lines 458..461
          webui/js/bootstrap.js on lines 642..645
          webui/js/bootstrap.js on lines 810..813
          webui/js/bootstrap.js on lines 1044..1047
          webui/js/bootstrap.js on lines 1720..1723
          webui/js/bootstrap.js on lines 1858..1861
          webui/js/bootstrap.js on lines 1976..1979

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 48.

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

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

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

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

          Refactorings

          Further Reading

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

            $.fn.collapse.noConflict = function () {
              $.fn.collapse = old
              return this
            }
          Severity: Major
          Found in webui/js/bootstrap.js and 8 other locations - About 40 mins to fix
          webui/js/bootstrap.js on lines 151..154
          webui/js/bootstrap.js on lines 256..259
          webui/js/bootstrap.js on lines 458..461
          webui/js/bootstrap.js on lines 810..813
          webui/js/bootstrap.js on lines 1044..1047
          webui/js/bootstrap.js on lines 1720..1723
          webui/js/bootstrap.js on lines 1858..1861
          webui/js/bootstrap.js on lines 1976..1979

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 48.

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

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

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

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

          Refactorings

          Further Reading

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

            $.fn.modal.noConflict = function () {
              $.fn.modal = old
              return this
            }
          Severity: Major
          Found in webui/js/bootstrap.js and 8 other locations - About 40 mins to fix
          webui/js/bootstrap.js on lines 151..154
          webui/js/bootstrap.js on lines 256..259
          webui/js/bootstrap.js on lines 458..461
          webui/js/bootstrap.js on lines 642..645
          webui/js/bootstrap.js on lines 810..813
          webui/js/bootstrap.js on lines 1720..1723
          webui/js/bootstrap.js on lines 1858..1861
          webui/js/bootstrap.js on lines 1976..1979

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 48.

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

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

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

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

          Refactorings

          Further Reading

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

            $.fn.carousel.noConflict = function () {
              $.fn.carousel = old
              return this
            }
          Severity: Major
          Found in webui/js/bootstrap.js and 8 other locations - About 40 mins to fix
          webui/js/bootstrap.js on lines 151..154
          webui/js/bootstrap.js on lines 256..259
          webui/js/bootstrap.js on lines 642..645
          webui/js/bootstrap.js on lines 810..813
          webui/js/bootstrap.js on lines 1044..1047
          webui/js/bootstrap.js on lines 1720..1723
          webui/js/bootstrap.js on lines 1858..1861
          webui/js/bootstrap.js on lines 1976..1979

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 48.

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

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

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

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

          Refactorings

          Further Reading

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

            $.fn.dropdown.noConflict = function () {
              $.fn.dropdown = old
              return this
            }
          Severity: Major
          Found in webui/js/bootstrap.js and 8 other locations - About 40 mins to fix
          webui/js/bootstrap.js on lines 151..154
          webui/js/bootstrap.js on lines 256..259
          webui/js/bootstrap.js on lines 458..461
          webui/js/bootstrap.js on lines 642..645
          webui/js/bootstrap.js on lines 1044..1047
          webui/js/bootstrap.js on lines 1720..1723
          webui/js/bootstrap.js on lines 1858..1861
          webui/js/bootstrap.js on lines 1976..1979

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 48.

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

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

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

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

          Refactorings

          Further Reading

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

            $.fn.scrollspy.noConflict = function () {
              $.fn.scrollspy = old
              return this
            }
          Severity: Major
          Found in webui/js/bootstrap.js and 8 other locations - About 40 mins to fix
          webui/js/bootstrap.js on lines 151..154
          webui/js/bootstrap.js on lines 256..259
          webui/js/bootstrap.js on lines 458..461
          webui/js/bootstrap.js on lines 642..645
          webui/js/bootstrap.js on lines 810..813
          webui/js/bootstrap.js on lines 1044..1047
          webui/js/bootstrap.js on lines 1858..1861
          webui/js/bootstrap.js on lines 1976..1979

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 48.

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

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

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

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

          Refactorings

          Further Reading

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

            $.fn.alert.noConflict = function () {
              $.fn.alert = old
              return this
            }
          Severity: Major
          Found in webui/js/bootstrap.js and 8 other locations - About 40 mins to fix
          webui/js/bootstrap.js on lines 256..259
          webui/js/bootstrap.js on lines 458..461
          webui/js/bootstrap.js on lines 642..645
          webui/js/bootstrap.js on lines 810..813
          webui/js/bootstrap.js on lines 1044..1047
          webui/js/bootstrap.js on lines 1720..1723
          webui/js/bootstrap.js on lines 1858..1861
          webui/js/bootstrap.js on lines 1976..1979

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 48.

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

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

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

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

          Refactorings

          Further Reading

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

                      for ( i = 0, l = srcElements.length; i < l; i++ ) {
                          fixInput( srcElements[ i ], destElements[ i ] );
                      }
          Severity: Minor
          Found in webui/js/jquery-2.0.3.js and 1 other location - About 40 mins to fix
          webui/js/jquery-2.0.3.js on lines 5741..5743

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 48.

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

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

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

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

          Refactorings

          Further Reading

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

            $.fn.tab.noConflict = function () {
              $.fn.tab = old
              return this
            }
          Severity: Major
          Found in webui/js/bootstrap.js and 8 other locations - About 40 mins to fix
          webui/js/bootstrap.js on lines 151..154
          webui/js/bootstrap.js on lines 256..259
          webui/js/bootstrap.js on lines 458..461
          webui/js/bootstrap.js on lines 642..645
          webui/js/bootstrap.js on lines 810..813
          webui/js/bootstrap.js on lines 1044..1047
          webui/js/bootstrap.js on lines 1720..1723
          webui/js/bootstrap.js on lines 1976..1979

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 48.

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

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

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

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

          Refactorings

          Further Reading

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

                          for ( i = 0, l = srcElements.length; i < l; i++ ) {
                              cloneCopyEvent( srcElements[ i ], destElements[ i ] );
                          }
          Severity: Minor
          Found in webui/js/jquery-2.0.3.js and 1 other location - About 40 mins to fix
          webui/js/jquery-2.0.3.js on lines 5730..5732

          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

          Function add has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              add: function( elem, types, handler, data, selector ) {
          Severity: Minor
          Found in webui/js/jquery-2.0.3.js - About 35 mins to fix

            Function CHILD has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                    "CHILD": function( type, what, argument, first, last ) {
            Severity: Minor
            Found in webui/js/jquery-2.0.3.js - About 35 mins to fix
              Severity
              Category
              Status
              Source
              Language