jbox-web/redmine_bootstrap_kit

View on GitHub

Showing 361 of 361 total issues

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 easeInQuad has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

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

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

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

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

            easeOutQuad: 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 easeInOutBounce has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

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

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

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

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

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

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

                      easeOutExpo: 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

                              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

                    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

                    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

                        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

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

                        if (needsV) {
                          d.scrollbarV.style.display = "block";
                          d.scrollbarV.style.bottom = needsH ? scrollbarWidth(d.measure) + "px" : "0";
                          d.scrollbarV.firstChild.style.height =
                            (scrollHeight - d.scroller.clientHeight + d.scrollbarV.clientHeight) + "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 343..351

                    Duplicated Code

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

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

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

                    Tuning

                    This issue has a mass of 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 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 4 locations. Consider refactoring.
                    Open

                        { keys: ['X'], type: 'operatorMotion', operator: 'delete',
                            motion: 'moveByCharacters', motionArgs: { forward: false },
                            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 232..234
                    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

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

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

                          if (alreadyCalled) {
                            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 128..131

                    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