adobe/brackets

View on GitHub

Showing 3,294 of 3,294 total issues

Function prioritizeOpenFile has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    SearchModel.prototype.prioritizeOpenFile = function (firstFile) {
        var workingSetFiles = MainViewManager.getWorkingSet(MainViewManager.ALL_PANES),
            workingSetFileFound = {},
            fileSetWithoutWorkingSet = [],
            startingWorkingFileSet = [],
Severity: Minor
Found in src/search/SearchModel.js - About 1 hr to fix

    Function getDocumentForPath has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function getDocumentForPath(fullPath, fileObj) {
            var doc = getOpenDocumentForPath(fullPath);
    
            if (doc) {
                // use existing document
    Severity: Minor
    Found in src/document/DocumentManager.js - About 1 hr to fix

      Function doSearch has 37 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function doSearch(searchObject, nextPages) {
      
          savedSearchObject = searchObject;
          if (!files) {
              console.log("no file object found");
      Severity: Minor
      Found in src/search/node/FindInFilesDomain.js - About 1 hr to fix

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

                    it("should list color names for color", function () {
                        testEditor.setCursorPos({ line: 98, ch: 11 }); // after color
                        var hintList = expectHints(CSSCodeHints.cssPropHintProvider);
                        verifyAttrHints(hintList, "aliceblue"); // first hint should be aliceblue
                    });
        Severity: Major
        Found in src/extensions/default/CSSCodeHints/unittests.js and 5 other locations - About 1 hr to fix
        src/extensions/default/CSSCodeHints/unittests.js on lines 167..171
        src/extensions/default/CSSCodeHints/unittests.js on lines 219..223
        src/extensions/default/CSSCodeHints/unittests.js on lines 471..475
        src/extensions/default/CSSCodeHints/unittests.js on lines 523..527
        src/extensions/default/HTMLCodeHints/unittests.js on lines 179..183

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

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

                    it("should list prop-name hints at end of property-value finished by ;", function () {
                        testEditor.setCursorPos({ line: 10, ch: 19 });    // after ;
                        var hintList = expectHints(CSSCodeHints.cssPropHintProvider);
                        verifyAttrHints(hintList, "align-content");  // filtered on "empty string"
                    });
        Severity: Major
        Found in src/extensions/default/CSSCodeHints/unittests.js and 5 other locations - About 1 hr to fix
        src/extensions/default/CSSCodeHints/unittests.js on lines 167..171
        src/extensions/default/CSSCodeHints/unittests.js on lines 471..475
        src/extensions/default/CSSCodeHints/unittests.js on lines 523..527
        src/extensions/default/CSSCodeHints/unittests.js on lines 783..787
        src/extensions/default/HTMLCodeHints/unittests.js on lines 179..183

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

        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

                if (start.ch !== end.ch) {
                    this.editor.document.replaceRange(completion, start, end);
                } else {
                    this.editor.document.replaceRange(completion, start);
                }
        Severity: Major
        Found in src/extensions/default/HtmlEntityCodeHints/main.js and 2 other locations - About 1 hr to fix
        src/extensions/default/HTMLCodeHints/main.js on lines 186..190
        src/extensions/default/HTMLCodeHints/main.js on lines 535..539

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

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

                    it("should list hints at end of existing attribute with whitespace", function () {
                        testEditor.setCursorPos({ line: 6, ch: 8 });        // cursor between end of attr ("d") and space
                        var hintList = expectHints(HTMLCodeHints.attrHintProvider);
                        verifyAttrHints(hintList, "id");  // filtered on "id"
                    });
        Severity: Major
        Found in src/extensions/default/HTMLCodeHints/unittests.js and 5 other locations - About 1 hr to fix
        src/extensions/default/CSSCodeHints/unittests.js on lines 167..171
        src/extensions/default/CSSCodeHints/unittests.js on lines 219..223
        src/extensions/default/CSSCodeHints/unittests.js on lines 471..475
        src/extensions/default/CSSCodeHints/unittests.js on lines 523..527
        src/extensions/default/CSSCodeHints/unittests.js on lines 783..787

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

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

                    it("should list all prop-name hints right after the open quote for style value context", function () {
                        testEditor.setCursorPos({ line: 4, ch: 12 });    // after "='"
                        var hintList = expectHints(CSSCodeHints.cssPropHintProvider);
                        verifyAttrHints(hintList, "align-content");  // filtered on "empty string"
                    });
        Severity: Major
        Found in src/extensions/default/CSSCodeHints/unittests.js and 5 other locations - About 1 hr to fix
        src/extensions/default/CSSCodeHints/unittests.js on lines 167..171
        src/extensions/default/CSSCodeHints/unittests.js on lines 219..223
        src/extensions/default/CSSCodeHints/unittests.js on lines 523..527
        src/extensions/default/CSSCodeHints/unittests.js on lines 783..787
        src/extensions/default/HTMLCodeHints/unittests.js on lines 179..183

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

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

                    it("should list prop-name hints at end of property-value finished by ; for style value context", function () {
                        testEditor.setCursorPos({ line: 10, ch: 19 });    // after ;
                        var hintList = expectHints(CSSCodeHints.cssPropHintProvider);
                        verifyAttrHints(hintList, "align-content");  // filtered on "empty string"
                    });
        Severity: Major
        Found in src/extensions/default/CSSCodeHints/unittests.js and 5 other locations - About 1 hr to fix
        src/extensions/default/CSSCodeHints/unittests.js on lines 167..171
        src/extensions/default/CSSCodeHints/unittests.js on lines 219..223
        src/extensions/default/CSSCodeHints/unittests.js on lines 471..475
        src/extensions/default/CSSCodeHints/unittests.js on lines 783..787
        src/extensions/default/HTMLCodeHints/unittests.js on lines 179..183

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

        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

                    if (start.ch !== end.ch) {
                        this.editor.document.replaceRange(completion, start, end);
                    } else {
                        this.editor.document.replaceRange(completion, start);
                    }
        Severity: Major
        Found in src/extensions/default/HTMLCodeHints/main.js and 2 other locations - About 1 hr to fix
        src/extensions/default/HTMLCodeHints/main.js on lines 535..539
        src/extensions/default/HtmlEntityCodeHints/main.js on lines 255..259

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

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

                    it("should list all prop-name hints right after curly bracket", function () {
                        testEditor.setCursorPos({ line: 4, ch: 11 });    // after {
                        var hintList = expectHints(CSSCodeHints.cssPropHintProvider);
                        verifyAttrHints(hintList, "align-content");  // filtered on "empty string"
                    });
        Severity: Major
        Found in src/extensions/default/CSSCodeHints/unittests.js and 5 other locations - About 1 hr to fix
        src/extensions/default/CSSCodeHints/unittests.js on lines 219..223
        src/extensions/default/CSSCodeHints/unittests.js on lines 471..475
        src/extensions/default/CSSCodeHints/unittests.js on lines 523..527
        src/extensions/default/CSSCodeHints/unittests.js on lines 783..787
        src/extensions/default/HTMLCodeHints/unittests.js on lines 179..183

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

        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

                    if (start.ch !== end.ch) {
                        this.editor.document.replaceRange(completion, start, end);
                    } else {
                        this.editor.document.replaceRange(completion, start);
                    }
        Severity: Major
        Found in src/extensions/default/HTMLCodeHints/main.js and 2 other locations - About 1 hr to fix
        src/extensions/default/HTMLCodeHints/main.js on lines 186..190
        src/extensions/default/HtmlEntityCodeHints/main.js on lines 255..259

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

        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

                        it("should increase hue by 18 on shift up arrow even if saturation is 0", function () {
                            testKey({
                                color:     "hsl(180, 0, 0)",
                                item:      "$hueBase",
                                key:       KeyEvent.DOM_VK_UP,
        Severity: Major
        Found in src/extensions/default/InlineColorEditor/unittests.js and 2 other locations - About 1 hr to fix
        src/extensions/default/InlineColorEditor/unittests.js on lines 1202..1213
        src/extensions/default/InlineColorEditor/unittests.js on lines 1214..1225

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

        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

                        testNoHints = function () {
                            testEditor.setCursorPos({ line: 0, ch: 10 });    // after {
                            expect(CSSPseudoSelectorCodeHints.pseudoSelectorHints.hasHints(testEditor, 'a')).toBe(false);
                        };
        Severity: Major
        Found in src/extensions/default/CSSPseudoSelectorHints/unittests.js and 3 other locations - About 1 hr to fix
        src/extensions/default/CSSAtRuleCodeHints/unittests.js on lines 160..163
        src/extensions/default/CSSAtRuleCodeHints/unittests.js on lines 164..167
        src/extensions/default/CSSPseudoSelectorHints/unittests.js on lines 204..207

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

        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

                    if(!noPropagation) delayedTriggers.push((function(c) { return function(event) { c._trigger("deactivate", event, this._uiHash(this)); };  }).call(this, this.containers[i]));
        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/ui/jquery.ui.sortable.js on lines 1005..1005
        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/ui/jquery.ui.sortable.js on lines 1006..1006
        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/ui/jquery.ui.sortable.js on lines 1015..1015

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

        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

                        testNoHintsOnSpace = function () {
                            testEditor.setCursorPos({ line: 3, ch: 3 });    // after {
                            expect(CSSAtRuleCodeHints.restrictedBlockHints.hasHints(testEditor, '')).toBe(false);
                        },
        Severity: Major
        Found in src/extensions/default/CSSAtRuleCodeHints/unittests.js and 3 other locations - About 1 hr to fix
        src/extensions/default/CSSAtRuleCodeHints/unittests.js on lines 164..167
        src/extensions/default/CSSPseudoSelectorHints/unittests.js on lines 161..164
        src/extensions/default/CSSPseudoSelectorHints/unittests.js on lines 204..207

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

        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

                        it("should increase hue by 18 on shift up arrow for a near-gray hex color", function () {
                            testKey({
                                color:     "#5c5b56",
                                item:      "$hueBase",
                                key:       KeyEvent.DOM_VK_UP,
        Severity: Major
        Found in src/extensions/default/InlineColorEditor/unittests.js and 2 other locations - About 1 hr to fix
        src/extensions/default/InlineColorEditor/unittests.js on lines 1190..1201
        src/extensions/default/InlineColorEditor/unittests.js on lines 1214..1225

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

        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

                        delayedTriggers.push((function(c) { return function(event) { c._trigger("out", event, this._uiHash(this)); };  }).call(this, this.containers[i]));
        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/ui/jquery.ui.sortable.js on lines 1005..1005
        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/ui/jquery.ui.sortable.js on lines 1006..1006
        src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/ui/jquery.ui.sortable.js on lines 1013..1013

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

        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 selectionBackground = fileSelectionBox({
                        ref: "selectionBackground",
                        selectionViewInfo: this.props.selectionViewInfo,
                        className: "filetree-selection",
                        visible: this.props.selectionViewInfo.get("hasSelection"),
        Severity: Major
        Found in src/project/FileTreeView.js and 1 other location - About 1 hr to fix
        src/project/FileTreeView.js on lines 1173..1180

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

        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

                        contextBackground = fileSelectionBox({
                            ref: "contextBackground",
                            selectionViewInfo: this.props.selectionViewInfo,
                            className: "filetree-context",
                            visible: this.props.selectionViewInfo.get("hasContext"),
        Severity: Major
        Found in src/project/FileTreeView.js and 1 other location - About 1 hr to fix
        src/project/FileTreeView.js on lines 1165..1172

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

        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