tomchentw/react-prism

View on GitHub

Showing 81 of 373 total issues

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

  "./node_modules/react-styleguidist/loaders/css-loader.js!./node_modules/codemirror/lib/codemirror.css": function(
    e,
    t,
    r
  ) {
Severity: Minor
Found in docs/build/0.355cdadd.js and 1 other location - About 50 mins to fix
docs/build/0.355cdadd.js on lines 11747..11757

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

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

  "./node_modules/react-styleguidist/loaders/css-loader.js!./node_modules/codemirror/theme/base16-light.css": function(
    e,
    t,
    r
  ) {
Severity: Minor
Found in docs/build/0.355cdadd.js and 1 other location - About 50 mins to fix
docs/build/0.355cdadd.js on lines 11736..11746

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

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

                this.props.scroll &&
                  this.editor.scrollTo(
                    this.props.scroll.x,
                    this.props.scroll.y
                  ),
Severity: Minor
Found in docs/build/0.355cdadd.js and 1 other location - About 45 mins to fix
docs/build/0.355cdadd.js on lines 11552..11553

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

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

              this.props.scroll &&
                this.editor.scrollTo(this.props.scroll.x, this.props.scroll.y),
Severity: Minor
Found in docs/build/0.355cdadd.js and 1 other location - About 45 mins to fix
docs/build/0.355cdadd.js on lines 11401..11405

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

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 t = this.editor.lastLine(),
              r = this.editor.getLine(this.editor.lastLine()).length
Severity: Minor
Found in docs/build/0.355cdadd.js and 1 other location - About 45 mins to fix
docs/build/0.355cdadd.js on lines 11487..11488

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

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 r = this.editor.lastLine(),
              n = this.editor.getLine(this.editor.lastLine()).length
Severity: Minor
Found in docs/build/0.355cdadd.js and 1 other location - About 45 mins to fix
docs/build/0.355cdadd.js on lines 11298..11299

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

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 r = t.bgClass
            ? t.bgClass + " " + (t.line.bgClass || "")
            : t.line.bgClass
Severity: Minor
Found in docs/build/0.355cdadd.js and 1 other location - About 40 mins to fix
docs/build/0.355cdadd.js on lines 1752..1754

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

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 r = t.textClass
          ? t.textClass + " " + (t.line.textClass || "")
          : t.line.textClass
Severity: Minor
Found in docs/build/0.355cdadd.js and 1 other location - About 40 mins to fix
docs/build/0.355cdadd.js on lines 1735..1737

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

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

        (UnControlled.prototype.componentWillUnmount = function() {
          s || (this.props.editorWillUnmount && this.props.editorWillUnmount(o))
        }),
Severity: Minor
Found in docs/build/0.355cdadd.js and 1 other location - About 40 mins to fix
docs/build/0.355cdadd.js on lines 11428..11431

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

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

          (Controlled.prototype.componentWillUnmount = function() {
            s ||
              (this.props.editorWillUnmount && this.props.editorWillUnmount(o))
          }),
Severity: Minor
Found in docs/build/0.355cdadd.js and 1 other location - About 40 mins to fix
docs/build/0.355cdadd.js on lines 11577..11579

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

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

              case "onDrop":
                this.editor.on("drop", function(e, r) {
                  t.props.onDrop(t.editor, r)
                })
                break
Severity: Major
Found in docs/build/0.355cdadd.js and 8 other locations - About 40 mins to fix
docs/build/0.355cdadd.js on lines 11179..11183
docs/build/0.355cdadd.js on lines 11194..11198
docs/build/0.355cdadd.js on lines 11199..11203
docs/build/0.355cdadd.js on lines 11209..11213
docs/build/0.355cdadd.js on lines 11219..11223
docs/build/0.355cdadd.js on lines 11224..11228
docs/build/0.355cdadd.js on lines 11229..11233
docs/build/0.355cdadd.js on lines 11239..11243

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

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

              case "onDragEnter":
                this.editor.on("dragenter", function(e, r) {
                  t.props.onDragEnter(t.editor, r)
                })
                break
Severity: Major
Found in docs/build/0.355cdadd.js and 8 other locations - About 40 mins to fix
docs/build/0.355cdadd.js on lines 11179..11183
docs/build/0.355cdadd.js on lines 11199..11203
docs/build/0.355cdadd.js on lines 11204..11208
docs/build/0.355cdadd.js on lines 11209..11213
docs/build/0.355cdadd.js on lines 11219..11223
docs/build/0.355cdadd.js on lines 11224..11228
docs/build/0.355cdadd.js on lines 11229..11233
docs/build/0.355cdadd.js on lines 11239..11243

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

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

              case "onKeyPress":
                this.editor.on("keypress", function(e, r) {
                  t.props.onKeyPress(t.editor, r)
                })
                break
Severity: Major
Found in docs/build/0.355cdadd.js and 8 other locations - About 40 mins to fix
docs/build/0.355cdadd.js on lines 11179..11183
docs/build/0.355cdadd.js on lines 11194..11198
docs/build/0.355cdadd.js on lines 11199..11203
docs/build/0.355cdadd.js on lines 11204..11208
docs/build/0.355cdadd.js on lines 11209..11213
docs/build/0.355cdadd.js on lines 11219..11223
docs/build/0.355cdadd.js on lines 11229..11233
docs/build/0.355cdadd.js on lines 11239..11243

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

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

              case "onKeyDown":
                this.editor.on("keydown", function(e, r) {
                  t.props.onKeyDown(t.editor, r)
                })
                break
Severity: Major
Found in docs/build/0.355cdadd.js and 8 other locations - About 40 mins to fix
docs/build/0.355cdadd.js on lines 11179..11183
docs/build/0.355cdadd.js on lines 11194..11198
docs/build/0.355cdadd.js on lines 11199..11203
docs/build/0.355cdadd.js on lines 11204..11208
docs/build/0.355cdadd.js on lines 11209..11213
docs/build/0.355cdadd.js on lines 11224..11228
docs/build/0.355cdadd.js on lines 11229..11233
docs/build/0.355cdadd.js on lines 11239..11243

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

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

              case "onKeyUp":
                this.editor.on("keyup", function(e, r) {
                  t.props.onKeyUp(t.editor, r)
                })
                break
Severity: Major
Found in docs/build/0.355cdadd.js and 8 other locations - About 40 mins to fix
docs/build/0.355cdadd.js on lines 11179..11183
docs/build/0.355cdadd.js on lines 11194..11198
docs/build/0.355cdadd.js on lines 11199..11203
docs/build/0.355cdadd.js on lines 11204..11208
docs/build/0.355cdadd.js on lines 11209..11213
docs/build/0.355cdadd.js on lines 11219..11223
docs/build/0.355cdadd.js on lines 11224..11228
docs/build/0.355cdadd.js on lines 11239..11243

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

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

              case "onDragOver":
                this.editor.on("dragover", function(e, r) {
                  t.props.onDragOver(t.editor, r)
                })
                break
Severity: Major
Found in docs/build/0.355cdadd.js and 8 other locations - About 40 mins to fix
docs/build/0.355cdadd.js on lines 11179..11183
docs/build/0.355cdadd.js on lines 11194..11198
docs/build/0.355cdadd.js on lines 11204..11208
docs/build/0.355cdadd.js on lines 11209..11213
docs/build/0.355cdadd.js on lines 11219..11223
docs/build/0.355cdadd.js on lines 11224..11228
docs/build/0.355cdadd.js on lines 11229..11233
docs/build/0.355cdadd.js on lines 11239..11243

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

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

              case "onFocus":
                this.editor.on("focus", function(e, r) {
                  t.props.onFocus(t.editor, r)
                })
                break
Severity: Major
Found in docs/build/0.355cdadd.js and 8 other locations - About 40 mins to fix
docs/build/0.355cdadd.js on lines 11179..11183
docs/build/0.355cdadd.js on lines 11194..11198
docs/build/0.355cdadd.js on lines 11199..11203
docs/build/0.355cdadd.js on lines 11204..11208
docs/build/0.355cdadd.js on lines 11219..11223
docs/build/0.355cdadd.js on lines 11224..11228
docs/build/0.355cdadd.js on lines 11229..11233
docs/build/0.355cdadd.js on lines 11239..11243

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

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

              case "onSelection":
                this.editor.on("beforeSelectionChange", function(e, r) {
                  t.props.onSelection(t.editor, r)
                })
                break
Severity: Major
Found in docs/build/0.355cdadd.js and 8 other locations - About 40 mins to fix
docs/build/0.355cdadd.js on lines 11179..11183
docs/build/0.355cdadd.js on lines 11194..11198
docs/build/0.355cdadd.js on lines 11199..11203
docs/build/0.355cdadd.js on lines 11204..11208
docs/build/0.355cdadd.js on lines 11209..11213
docs/build/0.355cdadd.js on lines 11219..11223
docs/build/0.355cdadd.js on lines 11224..11228
docs/build/0.355cdadd.js on lines 11229..11233

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

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

              case "onBlur":
                this.editor.on("blur", function(e, r) {
                  t.props.onBlur(t.editor, r)
                })
                break
Severity: Major
Found in docs/build/0.355cdadd.js and 8 other locations - About 40 mins to fix
docs/build/0.355cdadd.js on lines 11194..11198
docs/build/0.355cdadd.js on lines 11199..11203
docs/build/0.355cdadd.js on lines 11204..11208
docs/build/0.355cdadd.js on lines 11209..11213
docs/build/0.355cdadd.js on lines 11219..11223
docs/build/0.355cdadd.js on lines 11224..11228
docs/build/0.355cdadd.js on lines 11229..11233
docs/build/0.355cdadd.js on lines 11239..11243

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

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

        (UnControlled.prototype.componentWillMount = function() {
          s || (this.props.editorWillMount && this.props.editorWillMount())
        }),
Severity: Minor
Found in docs/build/0.355cdadd.js and 1 other location - About 40 mins to fix
docs/build/0.355cdadd.js on lines 11337..11339

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

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