maa123/mastodon

View on GitHub
app/javascript/mastodon/features/keyboard_shortcuts/index.jsx

Summary

Maintainability
F
1 wk
Test Coverage

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

  render () {
    const { intl, multiColumn } = this.props;

    return (
      <Column>
Severity: Major
Found in app/javascript/mastodon/features/keyboard_shortcuts/index.jsx - About 5 hrs to fix

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

                  <tr>
                    <td><kbd>down</kbd>, <kbd>j</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.down' defaultMessage='to move down in the list' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 63..66
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 79..82
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 87..90
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 95..98
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 99..102
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 115..118
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 119..122
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 123..126
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 127..130
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 131..134
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 135..138
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 139..142
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 143..146
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 147..150
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 151..154
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 155..158
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 159..162

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

    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

                  <tr>
                    <td><kbd>alt</kbd>+<kbd>n</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.toot' defaultMessage='to start a brand new post' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 63..66
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 79..82
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 83..86
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 87..90
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 99..102
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 115..118
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 119..122
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 123..126
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 127..130
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 131..134
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 135..138
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 139..142
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 143..146
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 147..150
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 151..154
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 155..158
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 159..162

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

    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

                  <tr>
                    <td><kbd>g</kbd>+<kbd>f</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.favourites' defaultMessage='to open favorites list' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 63..66
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 79..82
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 83..86
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 87..90
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 95..98
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 99..102
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 115..118
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 119..122
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 123..126
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 127..130
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 131..134
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 135..138
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 143..146
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 147..150
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 151..154
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 155..158
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 159..162

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

    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

                  <tr>
                    <td><kbd>g</kbd>+<kbd>u</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.my_profile' defaultMessage='to open your profile' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 63..66
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 79..82
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 83..86
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 87..90
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 95..98
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 99..102
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 115..118
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 119..122
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 123..126
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 127..130
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 131..134
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 135..138
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 139..142
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 143..146
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 151..154
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 155..158
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 159..162

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

    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

                  <tr>
                    <td><kbd>g</kbd>+<kbd>m</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.muted' defaultMessage='to open muted users list' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 63..66
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 79..82
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 83..86
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 87..90
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 95..98
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 99..102
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 115..118
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 119..122
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 123..126
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 127..130
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 131..134
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 135..138
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 139..142
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 143..146
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 147..150
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 151..154
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 159..162

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

    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

                  <tr>
                    <td><kbd>enter</kbd>, <kbd>o</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.enter' defaultMessage='to open status' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 79..82
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 83..86
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 87..90
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 95..98
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 99..102
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 115..118
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 119..122
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 123..126
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 127..130
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 131..134
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 135..138
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 139..142
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 143..146
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 147..150
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 151..154
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 155..158
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 159..162

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

    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

                  <tr>
                    <td><kbd>g</kbd>+<kbd>l</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.local' defaultMessage='to open local timeline' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 63..66
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 79..82
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 83..86
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 87..90
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 95..98
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 99..102
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 115..118
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 119..122
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 127..130
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 131..134
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 135..138
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 139..142
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 143..146
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 147..150
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 151..154
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 155..158
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 159..162

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

    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

                  <tr>
                    <td><kbd>g</kbd>+<kbd>b</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.blocked' defaultMessage='to open blocked users list' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 63..66
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 79..82
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 83..86
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 87..90
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 95..98
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 99..102
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 115..118
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 119..122
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 123..126
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 127..130
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 131..134
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 135..138
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 139..142
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 143..146
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 147..150
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 155..158
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 159..162

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

    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

                  <tr>
                    <td><kbd>alt</kbd>+<kbd>x</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.spoilers' defaultMessage='to show/hide CW field' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 63..66
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 79..82
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 83..86
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 87..90
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 95..98
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 115..118
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 119..122
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 123..126
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 127..130
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 131..134
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 135..138
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 139..142
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 143..146
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 147..150
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 151..154
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 155..158
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 159..162

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

    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

                  <tr>
                    <td><kbd>g</kbd>+<kbd>d</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.direct' defaultMessage='to open direct messages column' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 63..66
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 79..82
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 83..86
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 87..90
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 95..98
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 99..102
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 115..118
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 119..122
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 123..126
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 127..130
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 135..138
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 139..142
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 143..146
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 147..150
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 151..154
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 155..158
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 159..162

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

    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

                  <tr>
                    <td><kbd>g</kbd>+<kbd>s</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.start' defaultMessage='to open "get started" column' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 63..66
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 79..82
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 83..86
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 87..90
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 95..98
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 99..102
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 115..118
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 119..122
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 123..126
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 127..130
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 131..134
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 139..142
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 143..146
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 147..150
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 151..154
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 155..158
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 159..162

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

    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

                  <tr>
                    <td><kbd>g</kbd>+<kbd>p</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.pinned' defaultMessage='to open pinned posts list' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 63..66
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 79..82
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 83..86
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 87..90
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 95..98
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 99..102
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 115..118
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 119..122
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 123..126
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 127..130
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 131..134
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 135..138
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 139..142
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 147..150
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 151..154
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 155..158
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 159..162

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

    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

                  <tr>
                    <td><kbd>g</kbd>+<kbd>n</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.notifications' defaultMessage='to open notifications column' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 63..66
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 79..82
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 83..86
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 87..90
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 95..98
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 99..102
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 115..118
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 123..126
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 127..130
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 131..134
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 135..138
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 139..142
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 143..146
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 147..150
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 151..154
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 155..158
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 159..162

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

    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

                  <tr>
                    <td><kbd>up</kbd>, <kbd>k</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.up' defaultMessage='to move up in the list' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 63..66
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 83..86
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 87..90
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 95..98
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 99..102
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 115..118
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 119..122
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 123..126
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 127..130
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 131..134
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 135..138
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 139..142
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 143..146
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 147..150
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 151..154
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 155..158
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 159..162

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

    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

                  <tr>
                    <td><kbd>1</kbd>-<kbd>9</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.column' defaultMessage='to focus a status in one of the columns' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 63..66
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 79..82
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 83..86
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 95..98
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 99..102
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 115..118
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 119..122
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 123..126
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 127..130
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 131..134
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 135..138
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 139..142
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 143..146
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 147..150
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 151..154
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 155..158
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 159..162

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

    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

                  <tr>
                    <td><kbd>g</kbd>+<kbd>r</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.requests' defaultMessage='to open follow requests list' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 63..66
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 79..82
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 83..86
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 87..90
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 95..98
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 99..102
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 115..118
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 119..122
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 123..126
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 127..130
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 131..134
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 135..138
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 139..142
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 143..146
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 147..150
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 151..154
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 155..158

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

    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

                  <tr>
                    <td><kbd>g</kbd>+<kbd>t</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.federated' defaultMessage='to open federated timeline' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 63..66
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 79..82
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 83..86
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 87..90
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 95..98
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 99..102
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 115..118
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 119..122
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 123..126
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 131..134
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 135..138
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 139..142
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 143..146
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 147..150
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 151..154
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 155..158
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 159..162

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

    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

                  <tr>
                    <td><kbd>g</kbd>+<kbd>h</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.home' defaultMessage='to open home timeline' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 63..66
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 79..82
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 83..86
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 87..90
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 95..98
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 99..102
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 119..122
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 123..126
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 127..130
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 131..134
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 135..138
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 139..142
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 143..146
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 147..150
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 151..154
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 155..158
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 159..162

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

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

                  <tr>
                    <td><kbd>f</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.favourite' defaultMessage='to favorite' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 43..46
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 47..50
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 51..54
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 59..62
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 67..70
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 71..74
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 75..78
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 91..94
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 103..106
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 107..110
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 111..114
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 163..166

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

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

                  <tr>
                    <td><kbd>n</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.compose' defaultMessage='to focus the compose textarea' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 43..46
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 47..50
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 51..54
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 55..58
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 59..62
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 67..70
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 71..74
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 75..78
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 103..106
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 107..110
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 111..114
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 163..166

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

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

                  <tr>
                    <td><kbd>r</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.reply' defaultMessage='to reply' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 47..50
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 51..54
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 55..58
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 59..62
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 67..70
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 71..74
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 75..78
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 91..94
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 103..106
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 107..110
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 111..114
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 163..166

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

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

                  <tr>
                    <td><kbd>h</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.toggle_sensitivity' defaultMessage='to show/hide media' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 43..46
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 47..50
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 51..54
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 55..58
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 59..62
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 67..70
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 71..74
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 91..94
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 103..106
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 107..110
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 111..114
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 163..166

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

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

                  <tr>
                    <td><kbd>x</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.toggle_hidden' defaultMessage='to show/hide text behind CW' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 43..46
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 47..50
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 51..54
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 55..58
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 59..62
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 67..70
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 75..78
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 91..94
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 103..106
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 107..110
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 111..114
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 163..166

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

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

                  <tr>
                    <td><kbd>?</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.legend' defaultMessage='to display this legend' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 43..46
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 47..50
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 51..54
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 55..58
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 59..62
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 67..70
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 71..74
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 75..78
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 91..94
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 103..106
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 107..110
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 111..114

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

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

                  <tr>
                    <td><kbd>esc</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.unfocus' defaultMessage='to un-focus compose textarea/search' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 43..46
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 47..50
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 51..54
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 55..58
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 59..62
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 67..70
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 71..74
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 75..78
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 91..94
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 103..106
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 107..110
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 163..166

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

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

                  <tr>
                    <td><kbd>m</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.mention' defaultMessage='to mention author' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 43..46
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 51..54
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 55..58
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 59..62
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 67..70
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 71..74
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 75..78
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 91..94
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 103..106
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 107..110
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 111..114
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 163..166

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

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

                  <tr>
                    <td><kbd>b</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.boost' defaultMessage='to boost' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 43..46
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 47..50
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 51..54
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 55..58
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 67..70
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 71..74
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 75..78
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 91..94
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 103..106
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 107..110
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 111..114
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 163..166

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

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

                  <tr>
                    <td><kbd>p</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.profile' defaultMessage="to open author's profile" /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 43..46
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 47..50
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 55..58
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 59..62
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 67..70
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 71..74
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 75..78
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 91..94
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 103..106
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 107..110
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 111..114
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 163..166

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

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

                  <tr>
                    <td><kbd>e</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.open_media' defaultMessage='to open media' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 43..46
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 47..50
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 51..54
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 55..58
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 59..62
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 71..74
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 75..78
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 91..94
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 103..106
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 107..110
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 111..114
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 163..166

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

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

                  <tr>
                    <td><kbd>backspace</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.back' defaultMessage='to navigate back' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 43..46
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 47..50
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 51..54
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 55..58
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 59..62
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 67..70
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 71..74
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 75..78
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 91..94
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 107..110
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 111..114
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 163..166

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

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

                  <tr>
                    <td><kbd>s</kbd></td>
                    <td><FormattedMessage id='keyboard_shortcuts.search' defaultMessage='to focus search' /></td>
                  </tr>
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 43..46
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 47..50
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 51..54
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 55..58
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 59..62
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 67..70
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 71..74
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 75..78
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 91..94
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 103..106
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 111..114
    app/javascript/mastodon/features/keyboard_shortcuts/index.jsx on lines 163..166

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

    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

    There are no issues that match your filters.

    Category
    Status