adobe/brackets

View on GitHub

Showing 3,294 of 3,294 total issues

Function makeList has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

  function makeList(origin, capacity, level, root, tail, ownerID, hash) {
Severity: Major
Found in src/thirdparty/immutable.js - About 50 mins to fix

    Function update has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        HashArrayMapNode.prototype.update = function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
    Severity: Major
    Found in src/thirdparty/immutable.js - About 50 mins to fix

      Function update has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          ValueNode.prototype.update = function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
      Severity: Major
      Found in src/thirdparty/immutable.js - About 50 mins to fix

        Function update has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            BitmapIndexedNode.prototype.update = function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
        Severity: Major
        Found in src/thirdparty/immutable.js - About 50 mins to fix

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

                      beforeEach(function () {
                          // create Editor instance (containing a CodeMirror instance)
                          var mock = SpecRunnerUtils.createMockEditor(defaultContent, "less");
                          testEditor = mock.editor;
                          testDocument = mock.doc;
          Severity: Major
          Found in src/extensions/default/CSSAtRuleCodeHints/unittests.js and 7 other locations - About 50 mins to fix
          src/extensions/default/CSSAtRuleCodeHints/unittests.js on lines 208..213
          src/extensions/default/CSSCodeHints/unittests.js on lines 154..159
          src/extensions/default/CSSCodeHints/unittests.js on lines 246..251
          src/extensions/default/CSSCodeHints/unittests.js on lines 327..332
          src/extensions/default/CSSCodeHints/unittests.js on lines 388..393
          src/extensions/default/CSSCodeHints/unittests.js on lines 458..463
          src/extensions/default/CSSCodeHints/unittests.js on lines 547..552

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

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

                      } else if (this._state === BEFORE_STYLE_3) {
                          if (c === "e" || c === "E") {
                              this._state = BEFORE_STYLE_4;
                          } else {
                              this._state = IN_TAG_NAME;
          Severity: Major
          Found in src/language/HTMLTokenizer.js and 6 other locations - About 50 mins to fix
          src/language/HTMLTokenizer.js on lines 542..670
          src/language/HTMLTokenizer.js on lines 549..670
          src/language/HTMLTokenizer.js on lines 556..670
          src/language/HTMLTokenizer.js on lines 563..670
          src/language/HTMLTokenizer.js on lines 613..670
          src/language/HTMLTokenizer.js on lines 620..670

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

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

                      } else if (this._state === BEFORE_STYLE_2) {
                          if (c === "l" || c === "L") {
                              this._state = BEFORE_STYLE_3;
                          } else {
                              this._state = IN_TAG_NAME;
          Severity: Major
          Found in src/language/HTMLTokenizer.js and 6 other locations - About 50 mins to fix
          src/language/HTMLTokenizer.js on lines 542..670
          src/language/HTMLTokenizer.js on lines 549..670
          src/language/HTMLTokenizer.js on lines 556..670
          src/language/HTMLTokenizer.js on lines 563..670
          src/language/HTMLTokenizer.js on lines 613..670
          src/language/HTMLTokenizer.js on lines 627..670

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

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

                      beforeEach(function () {
                          // create dummy Document for the Editor
                          var mock = SpecRunnerUtils.createMockEditor(defaultContent, "javascript");
                          testEditor = mock.editor;
                          testDocument = mock.doc;
          Severity: Major
          Found in src/extensions/default/CSSCodeHints/unittests.js and 7 other locations - About 50 mins to fix
          src/extensions/default/CSSAtRuleCodeHints/unittests.js on lines 187..192
          src/extensions/default/CSSAtRuleCodeHints/unittests.js on lines 208..213
          src/extensions/default/CSSCodeHints/unittests.js on lines 154..159
          src/extensions/default/CSSCodeHints/unittests.js on lines 246..251
          src/extensions/default/CSSCodeHints/unittests.js on lines 327..332
          src/extensions/default/CSSCodeHints/unittests.js on lines 388..393
          src/extensions/default/CSSCodeHints/unittests.js on lines 458..463

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

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

                      beforeEach(function () {
                          // create Editor instance (containing a CodeMirror instance)
                          var mock = SpecRunnerUtils.createMockEditor(defaultContent, "css");
                          testEditor = mock.editor;
                          testDocument = mock.doc;
          Severity: Major
          Found in src/extensions/default/CSSCodeHints/unittests.js and 7 other locations - About 50 mins to fix
          src/extensions/default/CSSAtRuleCodeHints/unittests.js on lines 187..192
          src/extensions/default/CSSAtRuleCodeHints/unittests.js on lines 208..213
          src/extensions/default/CSSCodeHints/unittests.js on lines 246..251
          src/extensions/default/CSSCodeHints/unittests.js on lines 327..332
          src/extensions/default/CSSCodeHints/unittests.js on lines 388..393
          src/extensions/default/CSSCodeHints/unittests.js on lines 458..463
          src/extensions/default/CSSCodeHints/unittests.js on lines 547..552

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

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

                      beforeEach(function () {
                          // create Editor instance (containing a CodeMirror instance)
                          var mock = SpecRunnerUtils.createMockEditor(defaultContent, "css");
                          testEditor = mock.editor;
                          testDocument = mock.doc;
          Severity: Major
          Found in src/extensions/default/CSSAtRuleCodeHints/unittests.js and 7 other locations - About 50 mins to fix
          src/extensions/default/CSSAtRuleCodeHints/unittests.js on lines 187..192
          src/extensions/default/CSSCodeHints/unittests.js on lines 154..159
          src/extensions/default/CSSCodeHints/unittests.js on lines 246..251
          src/extensions/default/CSSCodeHints/unittests.js on lines 327..332
          src/extensions/default/CSSCodeHints/unittests.js on lines 388..393
          src/extensions/default/CSSCodeHints/unittests.js on lines 458..463
          src/extensions/default/CSSCodeHints/unittests.js on lines 547..552

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

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

                      } else if (this._state === BEFORE_SCRIPT_4) {
                          if (c === "t" || c === "T") {
                              this._state = BEFORE_SCRIPT_5;
                          } else {
                              this._state = IN_TAG_NAME;
          Severity: Major
          Found in src/language/HTMLTokenizer.js and 6 other locations - About 50 mins to fix
          src/language/HTMLTokenizer.js on lines 542..670
          src/language/HTMLTokenizer.js on lines 549..670
          src/language/HTMLTokenizer.js on lines 556..670
          src/language/HTMLTokenizer.js on lines 613..670
          src/language/HTMLTokenizer.js on lines 620..670
          src/language/HTMLTokenizer.js on lines 627..670

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

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

                      } else if (this._state === BEFORE_SCRIPT_1) {
                          if (c === "r" || c === "R") {
                              this._state = BEFORE_SCRIPT_2;
                          } else {
                              this._state = IN_TAG_NAME;
          Severity: Major
          Found in src/language/HTMLTokenizer.js and 6 other locations - About 50 mins to fix
          src/language/HTMLTokenizer.js on lines 549..670
          src/language/HTMLTokenizer.js on lines 556..670
          src/language/HTMLTokenizer.js on lines 563..670
          src/language/HTMLTokenizer.js on lines 613..670
          src/language/HTMLTokenizer.js on lines 620..670
          src/language/HTMLTokenizer.js on lines 627..670

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

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

                      beforeEach(function () {
                          // create dummy Document for the Editor
                          var mock = SpecRunnerUtils.createMockEditor(defaultContent, "html");
                          testEditor = mock.editor;
                          testDocument = mock.doc;
          Severity: Major
          Found in src/extensions/default/CSSCodeHints/unittests.js and 7 other locations - About 50 mins to fix
          src/extensions/default/CSSAtRuleCodeHints/unittests.js on lines 187..192
          src/extensions/default/CSSAtRuleCodeHints/unittests.js on lines 208..213
          src/extensions/default/CSSCodeHints/unittests.js on lines 154..159
          src/extensions/default/CSSCodeHints/unittests.js on lines 246..251
          src/extensions/default/CSSCodeHints/unittests.js on lines 327..332
          src/extensions/default/CSSCodeHints/unittests.js on lines 458..463
          src/extensions/default/CSSCodeHints/unittests.js on lines 547..552

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

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

                      beforeEach(function () {
                          // create Editor instance (containing a CodeMirror instance)
                          var mock = SpecRunnerUtils.createMockEditor(defaultHTMLContent, "html");
                          testEditor = mock.editor;
                          testDocument = mock.doc;
          Severity: Major
          Found in src/extensions/default/CSSCodeHints/unittests.js and 7 other locations - About 50 mins to fix
          src/extensions/default/CSSAtRuleCodeHints/unittests.js on lines 187..192
          src/extensions/default/CSSAtRuleCodeHints/unittests.js on lines 208..213
          src/extensions/default/CSSCodeHints/unittests.js on lines 154..159
          src/extensions/default/CSSCodeHints/unittests.js on lines 246..251
          src/extensions/default/CSSCodeHints/unittests.js on lines 327..332
          src/extensions/default/CSSCodeHints/unittests.js on lines 388..393
          src/extensions/default/CSSCodeHints/unittests.js on lines 547..552

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

          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

              Editor.setWordWrap = function (value, fullPath) {
                  var options = fullPath && {context: fullPath};
                  return PreferencesManager.set(WORD_WRAP, value, options);
              };
          Severity: Major
          Found in src/editor/Editor.js and 5 other locations - About 50 mins to fix
          src/editor/Editor.js on lines 2600..2603
          src/editor/Editor.js on lines 2621..2624
          src/editor/Editor.js on lines 2642..2645
          src/editor/Editor.js on lines 2663..2666
          src/editor/Editor.js on lines 2725..2728

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

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

                      beforeEach(function () {
                          // create Editor instance (containing a CodeMirror instance)
                          var mock = SpecRunnerUtils.createMockEditor(defaultContent, "css");
                          testEditor = mock.editor;
                          testDocument = mock.doc;
          Severity: Major
          Found in src/extensions/default/CSSCodeHints/unittests.js and 7 other locations - About 50 mins to fix
          src/extensions/default/CSSAtRuleCodeHints/unittests.js on lines 187..192
          src/extensions/default/CSSAtRuleCodeHints/unittests.js on lines 208..213
          src/extensions/default/CSSCodeHints/unittests.js on lines 154..159
          src/extensions/default/CSSCodeHints/unittests.js on lines 327..332
          src/extensions/default/CSSCodeHints/unittests.js on lines 388..393
          src/extensions/default/CSSCodeHints/unittests.js on lines 458..463
          src/extensions/default/CSSCodeHints/unittests.js on lines 547..552

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

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

                      beforeEach(function () {
                          // create Editor instance (containing a CodeMirror instance)
                          var mock = SpecRunnerUtils.createMockEditor(defaultContent, "css");
                          testEditor = mock.editor;
                          testDocument = mock.doc;
          Severity: Major
          Found in src/extensions/default/CSSCodeHints/unittests.js and 7 other locations - About 50 mins to fix
          src/extensions/default/CSSAtRuleCodeHints/unittests.js on lines 187..192
          src/extensions/default/CSSAtRuleCodeHints/unittests.js on lines 208..213
          src/extensions/default/CSSCodeHints/unittests.js on lines 154..159
          src/extensions/default/CSSCodeHints/unittests.js on lines 246..251
          src/extensions/default/CSSCodeHints/unittests.js on lines 388..393
          src/extensions/default/CSSCodeHints/unittests.js on lines 458..463
          src/extensions/default/CSSCodeHints/unittests.js on lines 547..552

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

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

                      } else if (this._state === BEFORE_SCRIPT_3) {
                          if (c === "p" || c === "P") {
                              this._state = BEFORE_SCRIPT_4;
                          } else {
                              this._state = IN_TAG_NAME;
          Severity: Major
          Found in src/language/HTMLTokenizer.js and 6 other locations - About 50 mins to fix
          src/language/HTMLTokenizer.js on lines 542..670
          src/language/HTMLTokenizer.js on lines 549..670
          src/language/HTMLTokenizer.js on lines 563..670
          src/language/HTMLTokenizer.js on lines 613..670
          src/language/HTMLTokenizer.js on lines 620..670
          src/language/HTMLTokenizer.js on lines 627..670

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

          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

              Editor.setSpaceUnits = function (value, fullPath) {
                  var options = fullPath && {context: fullPath};
                  return PreferencesManager.set(SPACE_UNITS, value, options);
              };
          Severity: Major
          Found in src/editor/Editor.js and 5 other locations - About 50 mins to fix
          src/editor/Editor.js on lines 2600..2603
          src/editor/Editor.js on lines 2642..2645
          src/editor/Editor.js on lines 2663..2666
          src/editor/Editor.js on lines 2704..2707
          src/editor/Editor.js on lines 2725..2728

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

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

                      } else if (this._state === BEFORE_STYLE_1) {
                          if (c === "y" || c === "Y") {
                              this._state = BEFORE_STYLE_2;
                          } else {
                              this._state = IN_TAG_NAME;
          Severity: Major
          Found in src/language/HTMLTokenizer.js and 6 other locations - About 50 mins to fix
          src/language/HTMLTokenizer.js on lines 542..670
          src/language/HTMLTokenizer.js on lines 549..670
          src/language/HTMLTokenizer.js on lines 556..670
          src/language/HTMLTokenizer.js on lines 563..670
          src/language/HTMLTokenizer.js on lines 620..670
          src/language/HTMLTokenizer.js on lines 627..670

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

          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