jbox-web/redmine_bootstrap_kit

View on GitHub

Showing 361 of 361 total issues

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

    easeInOutQuint: function (x, t, b, c, d) {
Severity: Minor
Found in assets/javascripts/jquery_file_tree/jquery_easing.js - About 35 mins to fix

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

        easeInOutCirc: function (x, t, b, c, d) {
    Severity: Minor
    Found in assets/javascripts/jquery_file_tree/jquery_easing.js - About 35 mins to fix

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

          easeOutBounce: function (x, t, b, c, d) {
      Severity: Minor
      Found in assets/javascripts/jquery_file_tree/jquery_easing.js - About 35 mins to fix

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

            easeInOutSine: function (x, t, b, c, d) {
        Severity: Minor
        Found in assets/javascripts/jquery_file_tree/jquery_easing.js - About 35 mins to fix

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

              easeInQuart: function (x, t, b, c, d) {
          Severity: Minor
          Found in assets/javascripts/jquery_file_tree/jquery_easing.js - About 35 mins to fix

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

                easeInCirc: function (x, t, b, c, d) {
            Severity: Minor
            Found in assets/javascripts/jquery_file_tree/jquery_easing.js - About 35 mins to fix

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

                  easeOutCirc: function (x, t, b, c, d) {
              Severity: Minor
              Found in assets/javascripts/jquery_file_tree/jquery_easing.js - About 35 mins to fix

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

                    easeInOutElastic: function (x, t, b, c, d) {
                Severity: Minor
                Found in assets/javascripts/jquery_file_tree/jquery_easing.js - About 35 mins to fix

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

                      easeInBounce: function (x, t, b, c, d) {
                  Severity: Minor
                  Found in assets/javascripts/jquery_file_tree/jquery_easing.js - About 35 mins to fix

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

                                  (sp.to == null || (m.inclusiveRight ? sp.to >= curPos.ch : sp.to > curPos.ch))) {
                    Severity: Minor
                    Found in assets/javascripts/codemirror/codemirror.js and 1 other location - About 35 mins to fix
                    assets/javascripts/codemirror/codemirror.js on lines 2605..2605

                    Duplicated Code

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

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

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

                    Tuning

                    This issue has a mass of 47.

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

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

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

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

                    Refactorings

                    Further Reading

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

                              if ((sp.from == null || (m.inclusiveLeft ? sp.from <= curPos.ch : sp.from < curPos.ch)) &&
                    Severity: Minor
                    Found in assets/javascripts/codemirror/codemirror.js and 1 other location - About 35 mins to fix
                    assets/javascripts/codemirror/codemirror.js on lines 2606..2606

                    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

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

                    CodeMirror.colorize = (function() {
                    
                      var isBlock = /^(p|li|div|h\\d|pre|blockquote|td)$/;
                    
                      function textContent(node, out) {
                    Severity: Minor
                    Found in assets/javascripts/codemirror/addon/runmode/colorize.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

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

                        var one = cm.markText(found.from, Pos(found.from.line, found.from.ch + 1), {className: style});
                    Severity: Minor
                    Found in assets/javascripts/codemirror/addon/edit/matchbrackets.js and 1 other location - About 35 mins to fix
                    assets/javascripts/codemirror/addon/edit/matchbrackets.js on lines 55..55

                    Duplicated Code

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

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

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

                    Tuning

                    This issue has a mass of 46.

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

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

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

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

                    Refactorings

                    Further Reading

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

                        on(d.scrollbarV, "scroll", function() {
                          if (d.scroller.clientHeight) setScrollTop(cm, d.scrollbarV.scrollTop);
                        });
                    Severity: Minor
                    Found in assets/javascripts/codemirror/codemirror.js and 1 other location - About 35 mins to fix
                    assets/javascripts/codemirror/codemirror.js on lines 1583..1585

                    Duplicated Code

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

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

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

                    Tuning

                    This issue has a mass of 46.

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

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

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

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

                    Refactorings

                    Further Reading

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

                        { keys: ['D'], type: 'operatorMotion', operator: 'delete',
                          motion: 'moveToEol', motionArgs: { inclusive: true },
                            operatorMotionArgs: { visualLine: true }},
                    Severity: Major
                    Found in assets/javascripts/codemirror/keymap/vim.js and 3 other locations - About 35 mins to fix
                    assets/javascripts/codemirror/keymap/vim.js on lines 229..231
                    assets/javascripts/codemirror/keymap/vim.js on lines 235..237
                    assets/javascripts/codemirror/keymap/vim.js on lines 238..241

                    Duplicated Code

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

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

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

                    Tuning

                    This issue has a mass of 46.

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

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

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

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

                    Refactorings

                    Further Reading

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

                        { keys: ['C'], type: 'operatorMotion',
                            operator: 'change',
                            motion: 'moveToEol', motionArgs: { inclusive: true },
                            operatorMotionArgs: { visualLine: true }},
                    Severity: Major
                    Found in assets/javascripts/codemirror/keymap/vim.js and 3 other locations - About 35 mins to fix
                    assets/javascripts/codemirror/keymap/vim.js on lines 229..231
                    assets/javascripts/codemirror/keymap/vim.js on lines 232..234
                    assets/javascripts/codemirror/keymap/vim.js on lines 235..237

                    Duplicated Code

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

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

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

                    Tuning

                    This issue has a mass of 46.

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

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

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

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

                    Refactorings

                    Further Reading

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

                            if (depth == 0) {
                              state.tokenize.pop();
                              return state.tokenize[state.tokenize.length-1](stream, state);
                            }
                    Severity: Minor
                    Found in assets/javascripts/codemirror/mode/ruby/ruby.js and 1 other location - About 35 mins to fix
                    assets/javascripts/codemirror/mode/ruby/ruby.js on lines 141..144

                    Duplicated Code

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

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

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

                    Tuning

                    This issue has a mass of 46.

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

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

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

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

                    Refactorings

                    Further Reading

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

                        var two = found.to && cm.markText(found.to, Pos(found.to.line, found.to.ch + 1), {className: style});
                    Severity: Minor
                    Found in assets/javascripts/codemirror/addon/edit/matchbrackets.js and 1 other location - About 35 mins to fix
                    assets/javascripts/codemirror/addon/edit/matchbrackets.js on lines 54..54

                    Duplicated Code

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

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

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

                    Tuning

                    This issue has a mass of 46.

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

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

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

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

                    Refactorings

                    Further Reading

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

                        { keys: ['g', 'E'], type: 'motion',
                            motion: 'moveByWords',
                            motionArgs: { forward: false, wordEnd: true, bigWord: true,
                                inclusive: true }},
                    Severity: Minor
                    Found in assets/javascripts/codemirror/keymap/vim.js and 1 other location - About 35 mins to fix
                    assets/javascripts/codemirror/keymap/vim.js on lines 155..157

                    Duplicated Code

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

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

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

                    Tuning

                    This issue has a mass of 46.

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

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

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

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

                    Refactorings

                    Further Reading

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

                        if (needsH) {
                          d.scrollbarH.style.display = "block";
                          d.scrollbarH.style.right = needsV ? scrollbarWidth(d.measure) + "px" : "0";
                          d.scrollbarH.firstChild.style.width =
                            (d.scroller.scrollWidth - d.scroller.clientWidth + d.scrollbarH.clientWidth) + "px";
                    Severity: Minor
                    Found in assets/javascripts/codemirror/codemirror.js and 1 other location - About 35 mins to fix
                    assets/javascripts/codemirror/codemirror.js on lines 334..342

                    Duplicated Code

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

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

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

                    Tuning

                    This issue has a mass of 46.

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

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

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

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

                    Refactorings

                    Further Reading

                    Severity
                    Category
                    Status
                    Source
                    Language