mar10/fancytree

View on GitHub

Showing 700 of 700 total issues

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

    ( function() {
    var cachedScrollbarWidth,
        max = Math.max,
        abs = Math.abs,
        rhorizontal = /left|center|right/,
Severity: Major
Found in src/jquery-ui-dependencies/jquery-ui-iife.js and 1 other location - About 1 mo to fix
src/jquery-ui-dependencies/jquery-ui.js on lines 786..1260

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

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() {
var cachedScrollbarWidth,
    max = Math.max,
    abs = Math.abs,
    rhorizontal = /left|center|right/,
Severity: Major
Found in src/jquery-ui-dependencies/jquery-ui.js and 1 other location - About 1 mo to fix
src/jquery-ui-dependencies/jquery-ui-iife.js on lines 777..1251

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

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

$.Widget.prototype = {
    widgetName: "widget",
    widgetEventPrefix: "",
    defaultElement: "<div>",

Severity: Major
Found in src/jquery-ui-dependencies/jquery.fancytree.ui-deps.js and 2 other locations - About 3 wks to fix
src/jquery-ui-dependencies/jquery-ui-iife.js on lines 284..711
src/jquery-ui-dependencies/jquery-ui.js on lines 293..720

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

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

$.Widget.prototype = {
    widgetName: "widget",
    widgetEventPrefix: "",
    defaultElement: "<div>",

Severity: Major
Found in src/jquery-ui-dependencies/jquery-ui.js and 2 other locations - About 3 wks to fix
src/jquery-ui-dependencies/jquery-ui-iife.js on lines 284..711
src/jquery-ui-dependencies/jquery.fancytree.ui-deps.js on lines 293..720

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

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

    $.Widget.prototype = {
        widgetName: "widget",
        widgetEventPrefix: "",
        defaultElement: "<div>",

Severity: Major
Found in src/jquery-ui-dependencies/jquery-ui-iife.js and 2 other locations - About 3 wks to fix
src/jquery-ui-dependencies/jquery-ui.js on lines 293..720
src/jquery-ui-dependencies/jquery.fancytree.ui-deps.js on lines 293..720

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

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

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

/*!
 * jQuery JavaScript Library v3.6.0
 * https://jquery.com/
 *
 * Includes Sizzle.js
Severity: Major
Found in lib/jquery.js - About 2 wks to fix

    File qunit.js has 5406 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
     * QUnit 2.19.1
     * https://qunitjs.com/
     *
     * Copyright OpenJS Foundation and other contributors
    Severity: Major
    Found in lib/qunit.js - About 2 wks to fix

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

      /*!
       * jquery.fancytree.js
       * Tree view control with support for lazy loading and much more.
       * https://github.com/mar10/fancytree/
       *
      Severity: Major
      Found in src/jquery.fancytree.js - About 2 wks to fix

        Function Sizzle has 1510 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        ( function( window ) {
        var i,
            support,
            Expr,
            getText,
        Severity: Major
        Found in lib/jquery.js - About 1 wk to fix

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

              $.widget = function( name, base, prototype ) {
                  var existingConstructor, constructor, basePrototype;
          
                  // ProxiedPrototype allows the provided prototype to remain unmodified
                  // so that it can be used as a mixin for multiple widgets (#8876)
          Severity: Major
          Found in src/jquery-ui-dependencies/jquery-ui-iife.js and 1 other location - About 5 days to fix
          src/jquery-ui-dependencies/jquery-ui.js on lines 61..189

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

          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

          $.widget = function( name, base, prototype ) {
              var existingConstructor, constructor, basePrototype;
          
              // ProxiedPrototype allows the provided prototype to remain unmodified
              // so that it can be used as a mixin for multiple widgets (#8876)
          Severity: Major
          Found in src/jquery-ui-dependencies/jquery-ui.js and 1 other location - About 5 days to fix
          src/jquery-ui-dependencies/jquery-ui-iife.js on lines 52..180

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

          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 UMD has 683 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                })(commonjsGlobal, function UMD() {
                  function fuzzysortNew(instanceOptions) {
                    var fuzzysort = {
                      single: function single(search, target, options) {
                        if (search == 'farzher') return {
          Severity: Major
          Found in lib/qunit.js - About 3 days to fix

            Function diff has 628 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                QUnit.diff = function () {
                  function DiffMatchPatch() {} //  DIFF FUNCTIONS
              
                  /**
                   * The data structure representing a diff is an array of tuples:
            Severity: Major
            Found in lib/qunit.js - About 3 days to fix

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

              $.widget.bridge = function( name, object ) {
                  var fullName = object.prototype.widgetFullName || name;
                  $.fn[ name ] = function( options ) {
                      var isMethodCall = typeof options === "string";
                      var args = widgetSlice.call( arguments, 1 );
              Severity: Major
              Found in src/jquery-ui-dependencies/jquery.fancytree.ui-deps.js and 2 other locations - About 3 days to fix
              src/jquery-ui-dependencies/jquery-ui-iife.js on lines 212..279
              src/jquery-ui-dependencies/jquery-ui.js on lines 221..288

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

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

                  $.widget.bridge = function( name, object ) {
                      var fullName = object.prototype.widgetFullName || name;
                      $.fn[ name ] = function( options ) {
                          var isMethodCall = typeof options === "string";
                          var args = widgetSlice.call( arguments, 1 );
              Severity: Major
              Found in src/jquery-ui-dependencies/jquery-ui-iife.js and 2 other locations - About 3 days to fix
              src/jquery-ui-dependencies/jquery-ui.js on lines 221..288
              src/jquery-ui-dependencies/jquery.fancytree.ui-deps.js on lines 221..288

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

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

              $.widget.bridge = function( name, object ) {
                  var fullName = object.prototype.widgetFullName || name;
                  $.fn[ name ] = function( options ) {
                      var isMethodCall = typeof options === "string";
                      var args = widgetSlice.call( arguments, 1 );
              Severity: Major
              Found in src/jquery-ui-dependencies/jquery-ui.js and 2 other locations - About 3 days to fix
              src/jquery-ui-dependencies/jquery-ui-iife.js on lines 212..279
              src/jquery-ui-dependencies/jquery.fancytree.ui-deps.js on lines 221..288

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

              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 fuzzysortNew has 595 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      function fuzzysortNew(instanceOptions) {
                        var fuzzysort = {
                          single: function single(search, target, options) {
                            if (search == 'farzher') return {
                              target: "farzher was here (^-^*)/",
              Severity: Major
              Found in lib/qunit.js - About 2 days to fix

                File jquery.fancytree.ui-deps.js has 1037 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /*! jQuery UI - v1.13.2 - 2022-08-16
                * http://jqueryui.com
                * Includes: widget.js, position.js, jquery-patch.js, keycode.js, scroll-parent.js, unique-id.js
                * Copyright jQuery Foundation and other contributors; Licensed MIT */
                
                
                Severity: Major
                Found in src/jquery-ui-dependencies/jquery.fancytree.ui-deps.js - About 2 days to fix

                  File jquery-ui.js has 1037 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  /*! jQuery UI - v1.13.2 - 2022-08-16
                  * http://jqueryui.com
                  * Includes: widget.js, position.js, jquery-patch.js, keycode.js, scroll-parent.js, unique-id.js
                  * Copyright jQuery Foundation and other contributors; Licensed MIT */
                  
                  
                  Severity: Major
                  Found in src/jquery-ui-dependencies/jquery-ui.js - About 2 days to fix

                    File jquery-ui-iife.js has 1029 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    /*! jQuery UI - v1.13.0 - 2021-11-09
                    * http://jqueryui.com
                    * Includes: widget.js, position.js, jquery-patch.js, keycode.js, scroll-parent.js, unique-id.js
                    * Copyright jQuery Foundation and other contributors; Licensed MIT */
                    
                    
                    Severity: Major
                    Found in src/jquery-ui-dependencies/jquery-ui-iife.js - About 2 days to fix
                      Severity
                      Category
                      Status
                      Source
                      Language