FujitsuLaboratories/cattaz

View on GitHub

Showing 110 of 110 total issues

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

VoteApplication.propTypes = {
  data: PropTypes.string.isRequired,
  onEdit: PropTypes.func.isRequired,
  appContext: PropTypes.shape({}).isRequired,
};
Severity: Major
Found in src/apps/VoteApplication.jsx and 17 other locations - About 1 hr to fix
src/apps/BookmarksApplication.jsx on lines 181..185
src/apps/DateApplication.jsx on lines 78..82
src/apps/DateMatcherApplication.jsx on lines 227..231
src/apps/DrawApplication.jsx on lines 149..153
src/apps/ErrorApplication.jsx on lines 41..45
src/apps/ExternalApplication.jsx on lines 66..70
src/apps/HelloApplication.jsx on lines 38..42
src/apps/KPTApplication.jsx on lines 142..146
src/apps/KanbanApplication.jsx on lines 532..536
src/apps/MandalaApplication.jsx on lines 92..96
src/apps/MapApplication.jsx on lines 209..213
src/apps/MeetingTimeApplication.jsx on lines 148..152
src/apps/ReversiApplication.jsx on lines 129..133
src/apps/VoteCryptoApplication.jsx on lines 154..158
src/apps/VoteHelpfulApplication.jsx on lines 154..158
src/apps/WeatherApplication.jsx on lines 111..115
src/apps/YoutubeApplication.jsx on lines 45..49

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

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

YoutubeApplication.propTypes = {
  data: PropTypes.string.isRequired,
  onEdit: PropTypes.func.isRequired,
  appContext: PropTypes.shape({}).isRequired,
};
Severity: Major
Found in src/apps/YoutubeApplication.jsx and 17 other locations - About 1 hr to fix
src/apps/BookmarksApplication.jsx on lines 181..185
src/apps/DateApplication.jsx on lines 78..82
src/apps/DateMatcherApplication.jsx on lines 227..231
src/apps/DrawApplication.jsx on lines 149..153
src/apps/ErrorApplication.jsx on lines 41..45
src/apps/ExternalApplication.jsx on lines 66..70
src/apps/HelloApplication.jsx on lines 38..42
src/apps/KPTApplication.jsx on lines 142..146
src/apps/KanbanApplication.jsx on lines 532..536
src/apps/MandalaApplication.jsx on lines 92..96
src/apps/MapApplication.jsx on lines 209..213
src/apps/MeetingTimeApplication.jsx on lines 148..152
src/apps/ReversiApplication.jsx on lines 129..133
src/apps/VoteApplication.jsx on lines 107..111
src/apps/VoteCryptoApplication.jsx on lines 154..158
src/apps/VoteHelpfulApplication.jsx on lines 154..158
src/apps/WeatherApplication.jsx on lines 111..115

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

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

KPTApplication.propTypes = {
  data: PropTypes.string.isRequired,
  onEdit: PropTypes.func.isRequired,
  appContext: PropTypes.shape({}).isRequired,
};
Severity: Major
Found in src/apps/KPTApplication.jsx and 17 other locations - About 1 hr to fix
src/apps/BookmarksApplication.jsx on lines 181..185
src/apps/DateApplication.jsx on lines 78..82
src/apps/DateMatcherApplication.jsx on lines 227..231
src/apps/DrawApplication.jsx on lines 149..153
src/apps/ErrorApplication.jsx on lines 41..45
src/apps/ExternalApplication.jsx on lines 66..70
src/apps/HelloApplication.jsx on lines 38..42
src/apps/KanbanApplication.jsx on lines 532..536
src/apps/MandalaApplication.jsx on lines 92..96
src/apps/MapApplication.jsx on lines 209..213
src/apps/MeetingTimeApplication.jsx on lines 148..152
src/apps/ReversiApplication.jsx on lines 129..133
src/apps/VoteApplication.jsx on lines 107..111
src/apps/VoteCryptoApplication.jsx on lines 154..158
src/apps/VoteHelpfulApplication.jsx on lines 154..158
src/apps/WeatherApplication.jsx on lines 111..115
src/apps/YoutubeApplication.jsx on lines 45..49

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

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

  clone() {
    const c = clone(this);
    c.items = this.items.map((i) => i.clone());
    return c;
  }
Severity: Major
Found in src/apps/KanbanApplication.jsx and 1 other location - About 1 hr to fix
src/apps/KanbanApplication.jsx on lines 109..113

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

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

ErrorApplication.propTypes = {
  data: PropTypes.string.isRequired,
  onEdit: PropTypes.func.isRequired,
  appContext: PropTypes.shape({}).isRequired,
};
Severity: Major
Found in src/apps/ErrorApplication.jsx and 17 other locations - About 1 hr to fix
src/apps/BookmarksApplication.jsx on lines 181..185
src/apps/DateApplication.jsx on lines 78..82
src/apps/DateMatcherApplication.jsx on lines 227..231
src/apps/DrawApplication.jsx on lines 149..153
src/apps/ExternalApplication.jsx on lines 66..70
src/apps/HelloApplication.jsx on lines 38..42
src/apps/KPTApplication.jsx on lines 142..146
src/apps/KanbanApplication.jsx on lines 532..536
src/apps/MandalaApplication.jsx on lines 92..96
src/apps/MapApplication.jsx on lines 209..213
src/apps/MeetingTimeApplication.jsx on lines 148..152
src/apps/ReversiApplication.jsx on lines 129..133
src/apps/VoteApplication.jsx on lines 107..111
src/apps/VoteCryptoApplication.jsx on lines 154..158
src/apps/VoteHelpfulApplication.jsx on lines 154..158
src/apps/WeatherApplication.jsx on lines 111..115
src/apps/YoutubeApplication.jsx on lines 45..49

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

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

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

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

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

Refactorings

Further Reading

Function render has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  render() {
    const {
      width, height, previewWidth, hast, onFocus, cursorPosition,
    } = this.state;
    const { defaultValue } = this.props;
Severity: Minor
Found in src/AppEnabledWikiEditorCodeMirror.jsx - About 1 hr to fix

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

      constructor() {
        super();
        this.refInput = React.createRef();
        this.handleEdit = this.handleEdit.bind(this);
      }
    Severity: Major
    Found in src/apps/YoutubeApplication.jsx and 1 other location - About 1 hr to fix
    src/apps/HelloApplication.jsx on lines 5..9

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

    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

            cm.replaceRange(backticks, { line: appContext.position.end.line - 1, ch: (appContext.position.start.column - 1) });
    Severity: Major
    Found in src/AppEnabledWikiEditorCodeMirror.jsx and 1 other location - About 1 hr to fix
    src/AppEnabledWikiEditorCodeMirror.jsx on lines 177..177

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

    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

            cm.replaceRange(backticks, { line: appContext.position.start.line - 1, ch: (appContext.position.start.column - 1) });
    Severity: Major
    Found in src/AppEnabledWikiEditorCodeMirror.jsx and 1 other location - About 1 hr to fix
    src/AppEnabledWikiEditorCodeMirror.jsx on lines 178..178

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

    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

      constructor() {
        super();
        this.refInput = React.createRef();
        this.handleEdit = this.handleEdit.bind(this);
      }
    Severity: Major
    Found in src/apps/HelloApplication.jsx and 1 other location - About 1 hr to fix
    src/apps/YoutubeApplication.jsx on lines 13..17

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

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

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

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

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

    Refactorings

    Further Reading

    Function handleClientCursor has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
    Open

      handleClientCursor(msg) {
        const client = this.otherClients.get(msg.id);
        if (msg.type === 'update') {
          if (!this.refEditor.current) return;
          const cm = this.refEditor.current.editor;
    Severity: Minor
    Found in src/AppEnabledWikiEditorCodeMirror.jsx - About 55 mins to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function findFlippablesInDirection has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
    Open

    function findFlippablesInDirection(cells, x, y, color, directionX, directionY) {
      for (let curX = x + directionX, curY = y + directionY; isValidPos(curX, curY); curX += directionX, curY += directionY) {
        const cur = cells[curX][curY];
        if (cur === StoneNone) return [];
        if (cur === color) {
    Severity: Minor
    Found in src/apps/ReversiModel.js - About 55 mins to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

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

                  <li>
                    <RouterLink to="/doc/app-hello">
                      Hello
                    </RouterLink>
                    {' '}
    Severity: Major
    Found in src/Main.jsx and 3 other locations - About 50 mins to fix
    src/Main.jsx on lines 237..247
    src/Main.jsx on lines 248..258
    src/Main.jsx on lines 290..300

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

      const msEndTime = `${endTime.year}-${endTime.month}-${endTime.day} ${endTime.hour}:${endTime.minute}`;
    Severity: Minor
    Found in src/apps/MeetingTimeApplication.jsx and 1 other location - About 50 mins to fix
    src/apps/MeetingTimeApplication.jsx on lines 38..38

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

              <li>
                <a href="LICENSE.txt">
                  The MIT License
                </a>
                . Source code is available on
    Severity: Major
    Found in src/Main.jsx and 3 other locations - About 50 mins to fix
    src/Main.jsx on lines 237..247
    src/Main.jsx on lines 248..258
    src/Main.jsx on lines 262..272

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

      const msStartTime = `${startTime.year}-${startTime.month}-${startTime.day} ${startTime.hour}:${startTime.minute}`;
    Severity: Minor
    Found in src/apps/MeetingTimeApplication.jsx and 1 other location - About 50 mins to fix
    src/apps/MeetingTimeApplication.jsx on lines 39..39

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

              <li>
                <RouterLink to="/doc/usage">
                  Usage
                </RouterLink>
                {' '}
    Severity: Major
    Found in src/Main.jsx and 3 other locations - About 50 mins to fix
    src/Main.jsx on lines 237..247
    src/Main.jsx on lines 262..272
    src/Main.jsx on lines 290..300

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

              <li>
                <RouterLink to="/doc/index">
                  Index
                </RouterLink>
                {' '}
    Severity: Major
    Found in src/Main.jsx and 3 other locations - About 50 mins to fix
    src/Main.jsx on lines 248..258
    src/Main.jsx on lines 262..272
    src/Main.jsx on lines 290..300

    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

    Function findFlippablesInDirection has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    function findFlippablesInDirection(cells, x, y, color, directionX, directionY) {
    Severity: Minor
    Found in src/apps/ReversiModel.js - About 45 mins to fix

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

      const cardSource = {
        beginDrag(props) {
          const { itemId, app } = props;
          return {
            itemId,
      Severity: Minor
      Found in src/apps/KanbanApplication.jsx and 1 other location - About 40 mins to fix
      src/apps/KanbanApplication.jsx on lines 296..304

      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

      Severity
      Category
      Status
      Source
      Language